XDG Base Directory Specification

Tinu Weber takeya at bluewin.ch
Sun Mar 29 22:18:23 CEST 2020


On Sun, Mar 29, 2020 at 13:37:44 +0200, Serpent7776 wrote:
> On Sat, 28 Mar 2020 23:04:39 +0100 "Nicolai Dagestad" <nicolai at dagestad.fr> wrote:
> > I know you already can set PASSWORD_STORE_DIR but I already have to way many
> > environment variable, it would be nice to not have to pipe env through less 
> > in the tty x)
> > 
> 
> You can set up a local alias instead of setting env variable for all
> applications:
> for bash that would probably be
> 
> alias pass='env PASSWORD_STORE_DIR=/some/dir pass'

Setting shell variables only applies to the interactive shell, so the
this will be of rather limited use.

In my case pass is almost exclusively invoked not manually, but through
other ways, e.g. with passmenu, or as part of an application
configuration file (mutt, msmtp, mbsync, irssi, ...).

In all those cases, an alias wouldn't have any effect, and setting an
environment variable is AFAIK the only agnostic way for achieving XBDS
compliance there.

Best,
Tinu


More information about the Password-Store mailing list