[neomutt-users] conditional source command?

Ulli Horlacher framstag at rus.uni-stuttgart.de
Fri Jun 23 15:47:54 CEST 2023

I want to source an extra config file, but only if it exists.

In my (very old) muttrc I have this ugly command:

source `test -f /usr/local/etc/Muttrc && echo /usr/local/etc/Muttrc || echo /dev/null`

Is there a more elegant alternative in neomutt for this code?

Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart         E-Mail: horlacher at tik.uni-stuttgart.de
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    https://www.tik.uni-stuttgart.de/
REF:<20230623134754.GA291555 at tik.uni-stuttgart.de>

More information about the neomutt-users mailing list