28 lines
661 B
EmacsLisp
28 lines
661 B
EmacsLisp
;; Get a nice interface to pass
|
|
(use-package pass
|
|
:commands pass
|
|
:init
|
|
(leader-def-key "P" '(nil :which-key "passwords"))
|
|
:config
|
|
(evil-collection-pass-setup)
|
|
(defun password-store-synchronize ()
|
|
(interactive)
|
|
(with-editor-async-shell-command "pass git pull && pass git push"))
|
|
:general
|
|
(leader-map "Pp" #'pass)
|
|
(normal pass-mode-map "S" #'password-store-synchronize))
|
|
|
|
(use-package password-store
|
|
:init
|
|
(epa-file-enable)
|
|
:general
|
|
(leader-map "Pg" #'password-store-copy)
|
|
:custom
|
|
(password-store-password-length 20))
|
|
|
|
;; Use pass as an auth source
|
|
(require 'auth-source-pass)
|
|
(auth-source-pass-enable)
|
|
|
|
(provide 'init-auth)
|