Integrate pass
This commit is contained in:
parent
91e0dd86aa
commit
0e0918cfaf
27
emacs/.emacs.modular/config/init-auth.el
Normal file
27
emacs/.emacs.modular/config/init-auth.el
Normal file
@ -0,0 +1,27 @@
|
||||
;; 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)
|
@ -27,6 +27,7 @@
|
||||
(require 'init-defaults)
|
||||
(require 'init-evil)
|
||||
(require 'init-keybindings)
|
||||
(require 'init-auth)
|
||||
(require 'init-dashboard)
|
||||
(require 'init-dotfiles)
|
||||
(require 'init-buffers)
|
||||
|
Loading…
Reference in New Issue
Block a user