Re: Set variable depending on environment (or similar)

2022-01-21 Thread Jens John
On Thu, 20 Jan 2022, at 13:29, Chris Green wrote: > I was thinking I might need to use muttLisp Now _that's_ something I've missed so far. Looks neat. Though the only use I personally see at the moment is replacing repeat statements in muttrc with varying arguments (mailboxes ..., alias ...) wit

Re: Set variable depending on environment (or similar)

2022-01-20 Thread Chris Green
On Thu, Jan 20, 2022 at 12:30:24PM +0100, Jakub Jindra wrote: > source `echo .muttrc-$HOSTNAME` > > allows you to have all hostname specific for all hosts in a single directory > Yes, *exactly* what I'm doing sat the moment, I was just trying to avoid two extra, very short. files. -- Chris Gree

Re: Set variable depending on environment (or similar)

2022-01-20 Thread Chris Green
On Thu, Jan 20, 2022 at 12:26:40PM +0100, Jens John wrote: > On Thu, 20 Jan 2022, at 10:52, Chris Green wrote: > > The first one is easy (I think?!) but how can I do the second one > > where my_hdr bears no relation to the hostname? > > According to the mutt man page: > > > It is also possible to

Re: Set variable depending on environment (or similar)

2022-01-20 Thread Chris Green
On Thu, Jan 20, 2022 at 01:07:59PM +0200, Tapani Tarvainen wrote: > On Thu, Jan 20, 2022 at 09:52:08AM +, Chris Green (c...@isbd.net) wrote: > > > > I run mutt on two systems with near identical muttrc files, it would > > be very handy to be able to make the muttrc files identical to > > simpl

Re: Set variable depending on environment (or similar)

2022-01-20 Thread Jakub Jindra
source `echo .muttrc-$HOSTNAME` allows you to have all hostname specific for all hosts in a single directory On 2022-01-20 13:07, Tapani Tarvainen wrote: On Thu, Jan 20, 2022 at 09:52:08AM +, Chris Green (c...@isbd.net) wrote: I run mutt on two systems with near identical muttrc files,

Re: Set variable depending on environment (or similar)

2022-01-20 Thread Jens John
On Thu, 20 Jan 2022, at 10:52, Chris Green wrote: > The first one is easy (I think?!) but how can I do the second one > where my_hdr bears no relation to the hostname? According to the mutt man page: > It is also possible to substitute the output of a Unix command in an > initialization file. T

Re: Set variable depending on environment (or similar)

2022-01-20 Thread Tapani Tarvainen
On Thu, Jan 20, 2022 at 09:52:08AM +, Chris Green (c...@isbd.net) wrote: > > I run mutt on two systems with near identical muttrc files, it would > be very handy to be able to make the muttrc files identical to > simplify maintenance. > > Essentially the *only* difference between the two mutt

Set variable depending on environment (or similar)

2022-01-20 Thread Chris Green
I run mutt on two systems with near identical muttrc files, it would be very handy to be able to make the muttrc files identical to simplify maintenance. Essentially the *only* difference between the two muttrc files is my E-Mail address used in alternates and my_hdr commands. On one system I can