On 2001.07.09, in <[EMAIL PROTECTED]>,
        "Will Yardley" <[EMAIL PROTECTED]> wrote:
> Is it possible to source different mutt config files somehow based on a shell
> script type thingie?
> 
> I guess I could have my .zshrc copy the appropriate mutt config file to
> .muttrc based on where i'm logging in from but this seems kind of silly.
> 
> basically i use the 'SSH_CLIENT' env variable to set $MY_LOCATION to 'home',
> 'work' or 'other'.  I'd like to use different .muttrc's for each location so

Something like

source `case "$MY_LOCATION" in; home) echo ..muttrc.home;; work) echo .muttrc.work;; 
esac`

Or, better,

source `echo .muttrc.${MY_LOCATION:-generic}`


(That's a muttrc directive, not a shell rc one.)

-- 
 -D.    [EMAIL PROTECTED]        NSIT    University of Chicago

Reply via email to