muttrc for different mutt versions

Todd Zullinger tmz at pobox.com
Thu Sep 6 17:56:39 UTC 2018


Claus Assmann wrote:
> On Thu, Sep 06, 2018, Kai Weber wrote:
> 
>> How can I have the same muttrc on both machines without running into
>> errors during mutt start?
> 
> I split the rc file into
> 1) a common part
> 2) parts specific to the mutt version
> and
> - source the common part (1) in the specific version (2)
> - use a wrapper which invokes mutt with the specific rc file (2)

Mutt also looks for muttrc-$VERSION, so you can avoid the
need for a wrapper.  If you start mutt-1.10.1 and have a
config file at ~/.mutt/muttrc-1.10.1, it will be sourced.

You can use $XDG_CONFIG_HOME/mutt/muttrc-$VERSION or
~/.muttrc-$VERSION as well, of course.

Source: http://mutt.org/doc/manual/#configuration-files

-- 
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Happiness is like peeing on yourself. Everyone can see it, but only
you can feel its warmth

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 543 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20180906/223a23b7/attachment.asc>


More information about the Mutt-users mailing list