Alfred Client for the Pass-CLI
- Copy password or any other property of an entry.
- Create a new entry.
- Inherits settings from your
.zshenv. - Option to trigger
pass git pushautomatically after any change. - As opposed to regular usage of
pass, the copied password is treated as transient, meaning it does not appear in Alfred's clipboard history.
-
Install the requirements
brew install pass pinentry-mac
-
Setup
passwith a GPG key. See the Pass Website for further information. -
Setup
pinentry-macas yourpinentry-program:[[ -d "$HOME/.gnupg" ]] || mkdir "$HOME/.gnupg" echo "pinentry-program $(brew --prefix)/bin/pinentry-mac" > $HOME/.gnupg/gpg-agent.conf gpgconf --kill gpg-agent # restart the agent
Note
When admitted to the Alfred Gallery, the workflow auto-updates via Alfred's workflow-update mechanism.
This workflow is reads all your PASSWORD_STORE_* environment variables that
have been added to your ~/.zshenv. This means that most configuration is done
by exporting respective variables in ~/.zshenv, this workflow therefore has
only few configuration options that concern Alfred in particular.
For information about the available environment variables, see the pass man page.
Note
If you are using a custom password-store directory, you must export yourPASSWORD_STORE_DIRin your~/.zshenvfor this workflow to work.
- Search your passwords via the keyword
pw. - ⏎: Copy password to the clipboard. If your search query does not
find an entry, you can directly create a new entry by pressing
↵. You are then prompted for a folder to place the new entry in. The password of the new entry is auto-generated based on yourpasssettings, or can be inserted from your clipboard. - ⌘⏎: Edit entry in your Terminal, using the Terminal
configured in your Alfred
settings and your
$EDITOR. - ⌥⏎: Reveal
.gpgfile of the entry in Finder. - ⌃⏎: Delete the entry.
- ⇧⏎: Show details of the entry. Select any one of them to copy the value to your clipboard.
- All contents copied by this clipboard are marked as "transient," meaning most clipboard history apps will ignore them, including Alfred's clipboard history.
- This workflow is just a convenient UI for
pass. As such, no passwords are saved by the workflow in any way. The workflow is open source, so feel free to check yourself.
About Me
In my day job, I am a sociologist studying the social mechanisms underlying the
digital economy. For my PhD project, I investigate the governance of the app
economy and how software ecosystems manage the tension between innovation and
compatibility. If you are interested in this subject, feel free to get in touch.
Profiles
