mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
:tools password-store -> :tools pass
A simpler name and matches the prefix of its module.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
;;; tools/password-store/autoload.el -*- lexical-binding: t; -*-
|
||||
;;; tools/pass/autoload.el -*- lexical-binding: t; -*-
|
||||
|
||||
(defun +pass--open-url (entry)
|
||||
(if-let* ((url (+pass-get-field entry +pass-url-fields)))
|
@@ -1,4 +1,4 @@
|
||||
;;; tools/password-store/config.el -*- lexical-binding: t; -*-
|
||||
;;; tools/pass/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(defvar +pass-user-fields '("login" "user" "username" "email")
|
||||
"A list of fields for `+pass/ivy' to search for the username.")
|
||||
@@ -14,13 +14,13 @@
|
||||
(setq password-store-password-length 12)
|
||||
|
||||
;; Fix hard-coded password-store location; respect PASSWORD_STORE_DIR envvar
|
||||
(defun +password-store*read-entry (entry)
|
||||
(defun +pass*read-entry (entry)
|
||||
"Return a string with the file content of ENTRY."
|
||||
(with-temp-buffer
|
||||
(insert-file-contents
|
||||
(expand-file-name (format "%s.gpg" entry) (password-store-dir)))
|
||||
(buffer-substring-no-properties (point-min) (point-max))))
|
||||
(advice-add #'auth-source-pass--read-entry :override #'+password-store*read-entry)
|
||||
(advice-add #'auth-source-pass--read-entry :override #'+pass*read-entry)
|
||||
|
||||
|
||||
;; `pass'
|
@@ -1,5 +1,5 @@
|
||||
;; -*- no-byte-compile: t; -*-
|
||||
;;; tools/password-store/packages.el
|
||||
;;; tools/pass/packages.el
|
||||
|
||||
(package! pass)
|
||||
(package! password-store)
|
@@ -1,7 +1,7 @@
|
||||
;; -*- no-byte-compile: t; -*-
|
||||
;;; tools/password-store/test/test-pass.el
|
||||
;;; tools/pass/test/test-pass.el
|
||||
|
||||
(describe "tools/password-store"
|
||||
(describe "tools/pass"
|
||||
(before-all
|
||||
(load! "../autoload"))
|
||||
|
Reference in New Issue
Block a user