[neomutt-users] dereference SYSCONFDIR in neomuttrc?
rich at flatcap.org
Wed Jun 28 17:40:16 CEST 2023
That's defined as part of the build process.
It appears a few times in the code as a default location to find files.
Unfortunately, it's not exposed to the user (except in the version)
neomutt -v | grep SYSCONFDIR
> I have added extra config files in SYSCONFDIR.
> How can I access them via neomuttrc?
A simple way is to modify the neomuttrc in _that_ directory.
If you simply:
(without a path) NeoMutt will try to find `x.rc` in the same directory.
> source $SYSCONFDIR/x.rc
or you could extract the directory using scripting:
neomutt -v | sed -n '/SYSCONFDIR/s/^/export NEOMUTT_/p'
Then you could configure:
Hope this helps,
FlatCap / Rich
# Don't print any output
# Only match lines containing SYSCONFDIR
# Search and replace
# ^ (beginning of the line)
# Print the result
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the neomutt-users