Forked from https://github.com/xuchunyang/1password.el to update to the latest 1Password CLI version, add support to get arbitrary fields and add auth-source backend.
Get password of item NAME, e.g., github.
Get field with label FIELD of item NAME, e.g., github api_key.
To enable the auth-source backend.
- Emacs 25.1 or later
op/ 1Password command line tool
For emacs-doom:
;; in packages.el
(package! 1password
:recipe (:host github :repo "kamushadenes/1password.el" :files ("*.el")))
;; in config.el
(use-package! 1password
:demand t
:init
(message "Enabling 1password ...")
:config
(1password-auth-source-enable))