Re: Conditional Configuration in .muttrc
- To: mutt-users@xxxxxxxx
- Subject: Re: Conditional Configuration in .muttrc
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Mon, 29 Dec 2008 11:59:13 -0600
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=H4WLpSKM+Q2e2RQu43XkZjXDq4k=; b=GaoQ VA/He9N2Jh27bspSoYSqiJ2F7IuAgrGBzIfYefnpf2LiGbdvbTk+uPDSzvK3tJpN viC3wAZ554fbA/gNhgfCAUGAXY96sjv1kBVBqwlexjKt2TDuefdsvfGzA85/nL/U vzPKrTmHRAlgKnmZiCShnn/FezdntuX9+TBCMwo=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=VFBJCeYb7Ct5UYWSetiOM0JsAeNn/2dx4Vv9J9O3MMpDyeWWhTqP/4gZxNTsBtaymnSLR4p4p6L5G2jJ8ur9Fji8mN8GvHJi0OCesF7d2AK+tsMa/9Af1yN+ghm7jVF6KAAD6NjUiweLg+qfsVl0rst2SltY8Xtz2ZXGkbnYQxI=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20081229121526.GD8510@xxxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20081229011322.GA16894@xxxxxxxxxxxxxxxxxxx> <20081229121526.GD8510@xxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-09-25)
-----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 bob@xxxxxxxxxx (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-----