compat: point pass to the correct store directory
This commit is contained in:
parent
f77b63c078
commit
7a5a588385
1 changed files with 7 additions and 0 deletions
|
|
@ -1184,7 +1184,14 @@ The =auth-source-pass= package lets you use [[*Password Management][pass]] as a
|
|||
#+begin_src emacs-lisp
|
||||
(require 'auth-source-pass)
|
||||
(setq auth-sources '(password-store "~/.authinfo.gpg")
|
||||
auth-source-pass-filename
|
||||
(or (getenv "PASSWORD_STORE_DIR")
|
||||
(and (file-readable-p "~/.password-store") "~/.password-store")
|
||||
"~/.local/share/password-store")
|
||||
auth-source-cache-expiry nil)
|
||||
|
||||
;; Instantiate this so that child processes can inherit it
|
||||
(setenv "PASSWORD_STORE_DIR" (expand-file-name auth-source-pass-filename))
|
||||
#+end_src
|
||||
|
||||
** Bindings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue