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
alias vim=nvim
# gpg
export GPG_TTY="$(tty)"
# 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
function gpg_start {
# gpg
export GPG_TTY="$(tty)"
# 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
}
# minio client
autoload -U +X bashcompinit && bashcompinit