Skip to content

Commit

Permalink
Move gpg_tty outside of check for ssh or not
Browse files Browse the repository at this point in the history
  • Loading branch information
drGrove committed Jan 3, 2019
1 parent 8518c8a commit 2d5d3c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .zshrc
Expand Up @@ -17,11 +17,10 @@ ZSH_THEME="odin"
# If connected locally
if [ -z "$SSH_TTY" ]; then
envfile="$HOME/.gnupg/gpg-agent.env"
export GPG_TTY=$(tty)
export SSH_AGENT_PID=""
export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh"
fi

export GPG_TTY=$(tty)

# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
Expand Down

0 comments on commit 2d5d3c8

Please sign in to comment.