-----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` > > 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 settings are appropriate given the conditional.
A slightly more succinct way of doing it is: source `[ ... ] && echo onefile.muttrc || echo twofile.muttrc` ~Kyle - -- I created a cron job to remind me of the Alamo. -- Arun Rodrigues -----BEGIN PGP SIGNATURE----- Comment: Thank you for using encryption! iEUEARECAAYFAklZD/EACgkQBkIOoMqOI16PLACg6zowmkB/3INEmD3EKWVWNGVf 8/IAmPbHJZnvMve0zyva0OZ/+zXAwmo= =OiJb -----END PGP SIGNATURE-----