pass

An Alfred Workflow


Short Description

Pass (the standard Unix password manager) integration

Last Updated

04 Feb 2019

Compatibility

Yosemite
(10.10)
Mavericks
(10.9)
Mountain Lion
(10.8)
Lion
(10.7)
Snow Leopard
(10.6)
Yes Yes Yes Yes Yes
 

Version

0.3.4
 

Bundle ID

pl.intrepidus.pass
 

Author

Applications

Alfred 2 and 3 integration with Pass

Packal page

Alfred forum page

This is Alfred 2 and 3 integration with Pass - the standard Unix password manager. I took the idea for this from passmenu which is available for Linux.

Setup

To make this work you need: * pass (obviously) -- needs to be set up with password store in ~/.password-store/. * gpg-agent -- install with brew * pinentry-mac -- also install with brew (this is GUI frontend for gpg-agent).

Next configure gpg-agent to use pinentry-mac and not the bundled one, editing ~/.gnupg/gpg-agent.conf:

pinentry-program /usr/local/bin/pinentry-mac

Basic Alfred commands:

pass <filter terms>

This will search through your passwords using the filter terms you provided.

The password will be copied to clipboard and cleared after 45 seconds (this is the default pass -c behavior). You can change that time by modifying the env variable PASSWORD_STORE_CLIP_TIME. Or in the pass-show.sh file you can change this line

pass show -c $QUERY

into this one

pass show $QUERY | awk 'BEGIN{ORS=""} {print; exit}' | pbcopy

to aviod auto-clearing of clipboard.

pg <id>

Calls pass generate to add a new password with default length of 20 chars.

Development

To generate the pass.alfredworkflow file (which you can import to Alfred), just use

make

Changes

[0.3.2] - 2018-05-09

Fixed

  • new Placeholder Title
  • add Alfred 3 to README.md

Added

  • Icons

[0.3.1] - 2017-10-31

Fixed

  • fix searching for secrets with whitespaces in their name

[0.3] - 2017-02-08

Fixed

  • remove use of rstrip as it can strip valid characters from password filename

Added

  • pass generate functionality

[0.2.1] - 2016-01-18

Added

  • LICENSE.md file

[0.2.0] - 2016-01-18

Added

  • Add Makefile to create pass.alfredworkflow by @sorbits
  • Add UID to each item to enable Alfred's ranking by @sorbits
  • Present password item's path as a subtitle by @sorbits
  • Support progressive completion of password items by @sorbits

Changed

  • Use pass -c for copying to clipboard by @CGenie
  • Remove pass.alfredworkflow from repo, use Makefile instead by @CGenie

Fixed

  • Sort items alphabetically (case-insensitively) and perform case-insensitive filtering by @sorbits

[0.1.0] - 2016-01-15

Added

  • Initial working version (with pass filter) by @CGenie