XDG Base Directory Specification

Serpent7776 serpent7776 at gmail.com
Sun Mar 29 22:47:04 CEST 2020


On Sun, 29 Mar 2020 22:18:23 +0200
Tinu Weber <takeya at bluewin.ch> wrote:

> 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

Hi,

If pass is executed not directly, but by passmenu, then one can execute `env PASSWORD_STORE_DIR=/some/dir passmenu` and pass
should inherit the variable.

-- 
/*
 * Serpent7776
 */


More information about the Password-Store mailing list