1
0
Fork 0

Make GPG shell nicer

main
Ambrose Chua 2020-04-02 09:09:25 +08:00
parent 94cf925937
commit ab96e30182
Signed by: ambrose
GPG Key ID: BC367D33F140B5C2
1 changed files with 2 additions and 3 deletions

5
.zshrc
View File

@ -109,12 +109,11 @@ alias icat="kitty +kitten icat"
# gpg help
function gpg_start {
# gpg
# gpg tty fix for macOS pinentry. also ensures agent is started
export GPG_TTY="$(tty)"
echo UPDATESTARTUPTTY | gpg-connect-agent 2>&1 >/dev/null
# gpg ssh agent
test -e "$(which gpgconf)" && export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
# gpg ssh fix pinentry
echo "UPDATESTARTUPTTY" | gpg-connect-agent > /dev/null 2>&1
}
# iTerm2 integration