Skip to content

Since sudolikeaboss is temporarily broken, I've created a script that uses pass to nearly duplicate the functionality

Notifications You must be signed in to change notification settings

DanFreed/passprompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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.

  • First, create a keychain
    • gpg --gen-key
  • Find the name of your public keychain:
    • kgpg -k | egrep -A 1 pub
  • Initialize your pass directory using the name of the public keychain you just created:
    • pass init ""
  • Create some passwords:
    • pass insert
    • follow the prompts.

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:

  • iTerm2 menu - Preferences
  • Click on keys
  • Click on +
  • Set the shortcut
  • Set the action to "run coprocess"
  • Set the third field to the path where you put passprompt.
  • Close the preferences window, and use your shortcut.

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.

About

Since sudolikeaboss is temporarily broken, I've created a script that uses pass to nearly duplicate the functionality

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages