tools/pass: conform to new conventions
This commit is contained in:
parent
d307de8297
commit
763262b2a3
1 changed files with 2 additions and 2 deletions
|
@ -14,13 +14,13 @@
|
||||||
(setq password-store-password-length 12)
|
(setq password-store-password-length 12)
|
||||||
|
|
||||||
;; Fix hard-coded password-store location; respect PASSWORD_STORE_DIR envvar
|
;; Fix hard-coded password-store location; respect PASSWORD_STORE_DIR envvar
|
||||||
(defun +pass*read-entry (entry)
|
(def-advice! +pass-read-entry-a (entry)
|
||||||
"Return a string with the file content of ENTRY."
|
"Return a string with the file content of ENTRY."
|
||||||
|
:override #'auth-source-pass--read-entry
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(insert-file-contents
|
(insert-file-contents
|
||||||
(expand-file-name (format "%s.gpg" entry) (password-store-dir)))
|
(expand-file-name (format "%s.gpg" entry) (password-store-dir)))
|
||||||
(buffer-substring-no-properties (point-min) (point-max))))
|
(buffer-substring-no-properties (point-min) (point-max))))
|
||||||
(advice-add #'auth-source-pass--read-entry :override #'+pass*read-entry)
|
|
||||||
|
|
||||||
|
|
||||||
;; `pass'
|
;; `pass'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue