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 +0000, Chris Green ([email protected]) 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 muttrc files is my
E-Mail address used in alternates and my_hdr commands.

On one system I can use the system's hostname to form my address but
not on the other.  Is there a way to set a variable according to the
value of another variable (or command output)?

How about something like

source .muttrc-local

with the host-specific settings in the .muttrc-local file?

--
Tapani Tarvainen

--
Jakub Jindra

Attachment: signature.asc
Description: PGP signature

Reply via email to