[neomutt-users] dereference SYSCONFDIR in neomuttrc?

Ulli Horlacher framstag at rus.uni-stuttgart.de
Wed Jun 28 21:57:21 CEST 2023


On Wed 2023-06-28 (16:40), Richard Russon wrote:

> > SYSCONFDIR="/sw/ubuntu-22.04/neomutt-20230517/etc"
> 
> That's defined as part of the build process.
> Unfortunately, it's not exposed to the user (except in the version)

Bad for me :-(


> > 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:
> 
>   source x.rc
> (without a path) NeoMutt will try to find `x.rc` in the same directory.

My setup is little bit more complicated, I have:

macro index,pager \CXvx   ":source $SYSCONFDIR/xterm.rc\n"
macro index,pager \CXvc   ":source $SYSCONFDIR/console.rc\n"



> or you could extract the directory using scripting:
> 
>   neomutt -v | sed -n '/SYSCONFDIR/s/^/export NEOMUTT_/p'

I prefer awk :-)

eval $(neomutt -v|awk '/SYSCONFDIR/{print "export "$1}')

But how can I integrate it in neomuttrc?

So far I use a shell-wrapper for neomutt.


-- 
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:<7fggoxab5tapnyz53a73bhy6fdbgvwsyaeg3dxv4ovfan5vkv7 at nws2h5rbk2sh>


More information about the neomutt-users mailing list