compat: point pass to the correct store directory

This commit is contained in:
Kiana Sheibani 2025-10-22 13:28:48 -04:00
parent f77b63c078
commit 7a5a588385
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -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