Created
November 2, 2017 12:55
-
-
Save raphink/474f8885ef14d2913c2d1b8d92c55ca2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.config/google-chrome-beta/NativeMessagingHosts/com.justwatch.gopass.json | |
{ | |
"name": "com.justwatch.gopass", | |
"description": "Gopass wrapper to search and return passwords", | |
"path": "/home/raphink/bin/gopass_wrapper.sh", | |
"type": "stdio", | |
"allowed_origins": [ | |
"chrome-extension://kkhfnlkhiapbiehimabddjbimfaijdhk/" | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -f ~/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
source ~/.gpg-agent-info | |
export GPG_AGENT_INFO | |
else | |
eval $(gpg-agent --daemon) | |
fi | |
export PATH="$PATH:/usr/local/bin" # required on MacOS/brew | |
export GPG_TTY="$(tty)" | |
/home/raphink/go/bin/gopass jsonapi listen | |
exit $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment