Re: Conditional Configuration in .muttrc

2009-01-01 Thread Bob Proulx
Kyle Wheeler wrote: > On Monday, December 29 at 12:15 PM, quoth Michael Kjorling: > > Untested, but should work: > > `if [ ... ]; then echo 'source onefile.muttrc'; else echo 'source > > otherfile.muttrc'; fi` > > > > Then just fill in "onefile.muttrc" and "otherfile.muttrc" with > > whichever se

Re: Conditional Configuration in .muttrc

2008-12-29 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday, December 29 at 12:15 PM, quoth Michael Kjorling: > On 28 Dec 2008 18:13 -0700, by b...@proulx.com (Bob Proulx): >> set pager_index_lines=`test $(stty -a | sed -n '/rows/s/.*rows >> \([0-9][0-9]*\);.*/\1/p') -gt 30 && echo 8 || echo 0` > >

Re: Conditional Configuration in .muttrc

2008-12-29 Thread Michael Kjorling
On 28 Dec 2008 18:13 -0700, by b...@proulx.com (Bob Proulx): > set pager_index_lines=`test $(stty -a | sed -n '/rows/s/.*rows > \([0-9][0-9]*\);.*/\1/p') -gt 30 && echo 8 || echo 0` Untested, but should work: `if [ ... ]; then echo 'source onefile.muttrc'; else echo 'source otherfile.muttrc';

Conditional Configuration in .muttrc

2008-12-28 Thread Bob Proulx
I happen to like pager_index_lines=8 to show me where I am in the thread. But at times I read mail from my PDA with a small screen. I want to conditionally change the configuration such that large terminals get pager_index_lines set to a value but small terminals do not set this value. I came up