Skip to content

Instantly share code, notes, and snippets.

@raphink
Created July 24, 2017 11:10
Show Gist options
  • Save raphink/10a05159eb77b4b152448a830d2f388c to your computer and use it in GitHub Desktop.
Save raphink/10a05159eb77b4b152448a830d2f388c to your computer and use it in GitHub Desktop.
Use pass with a secondary location (e.g. ~/.password-store-perso)
# Pass with specific location
_pass-perso() {
PASSWORD_STORE_DIR=~/.password-store-perso/ _pass
}
complete -o filenames -o nospace -F _pass-perso pass-perso
pass-perso() {
PASSWORD_STORE_DIR=~/.password-store-perso/ pass "$@"
}
#!/bin/bash
PASSWORD_STORE_DIR="$HOME/.password-store-perso" $HOME/bin/browserpass "$@" <&0
{
"name": "com.dannyvankooten.browserpass",
"description": "Browserpass binary for the Chrome extension",
"path": "/home/raphink/bin/browserpass-perso",
"type": "stdio",
"allowed_origins": [
"chrome-extension://jegbgfamcgeocbfeebacnkociplhmfbk/",
"chrome-extension://klfoddkbhleoaabpmiigbmpbjfljimgb/"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment