DanFreed / passprompt

Since sudolikeaboss is temporarily broken, I've created a script that uses pass to nearly duplicate the functionality
4 stars 3 forks source link

Passprompt is a little script that I wrote to help ease the pain of losing the use of sudolikeaboss (https://github.com/ravenac95/sudolikeaboss) due to changes to 1Password.

This isn't as nice assudolikeaboss and 1Password, but it does function.
There are some tools for pass that allow you to create the password database using a 1Password export, but I just created them manually.

This relies on several other packages:

After installing all of the above, you need to create a password repository with pass and GPG.

Copy passprompt to where ever you want it. I use /Users//bin/ and be sure it is executable. Now create a keyboard shortcut in iTerm 2:

You can configure how the GPGTools work in the System Preferences using the GPG Suite icon.

You may need to configure a user-agent in your ~/.gnupg/gpg.conf file in order to make the GUI pin entry dialog box to work. If you are not getting prompted, try running :

/usr/local/bin/gpg -d ~/.password-store/

If this prompt you in iTerm for your password with a Curses or other text style prompt, the passprompt script is not going to work for you. To fix this you need to edit ~/.gnupg/gpg.conf and add/modify these lines:

use-agent
agent-program /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac

Try the test again to verify you see a GUI dialog.