1
0
Fork 0

Do not automatically setup GPG pinentry tty
continuous-integration/drone/push Build is failing Details

main
Ambrose Chua 2019-09-20 00:57:17 +08:00
parent f7534eeb88
commit 53f4bc5a49
Signed by: ambrose
GPG Key ID: BC367D33F140B5C2
1 changed files with 8 additions and 6 deletions

14
.zshrc
View File

@ -81,12 +81,14 @@ export PATH="$HOME/.yarn/bin:$PATH"
# aliases # aliases
alias vim=nvim alias vim=nvim
# gpg function gpg_start {
export GPG_TTY="$(tty)" # gpg
# gpg ssh agent export GPG_TTY="$(tty)"
test -e "$(which gpgconf)" && export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" # gpg ssh agent
# gpg ssh fix pinentry test -e "$(which gpgconf)" && export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
echo "UPDATESTARTUPTTY" | gpg-connect-agent > /dev/null 2>&1 # gpg ssh fix pinentry
echo "UPDATESTARTUPTTY" | gpg-connect-agent > /dev/null 2>&1
}
# minio client # minio client
autoload -U +X bashcompinit && bashcompinit autoload -U +X bashcompinit && bashcompinit