Skip to content

Instantly share code, notes, and snippets.

@raphink
Created November 2, 2017 12:55
Show Gist options
  • Save raphink/474f8885ef14d2913c2d1b8d92c55ca2 to your computer and use it in GitHub Desktop.
Save raphink/474f8885ef14d2913c2d1b8d92c55ca2 to your computer and use it in GitHub Desktop.
# ~/.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/"
]
}
#!/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