Not a perfect fix for setting gpg tty when connected via ssh

This commit is contained in:
2019-09-12 09:09:34 +02:00
parent b0069a82b5
commit 0e4a2d27b9

View File

@@ -12,6 +12,12 @@ export HISTSIZE=1000
export SAVEHIST=1000
setopt SHARE_HISTORY
# set correct gpg tty for ssh
if [ -n "$SSH_TTY" ]; then
export GPG_TTY=$SSH_TTY
gpg-connect-agent updatestartuptty /bye >/dev/null
fi
# add path to $fpath
fpath=("$HOME/.zsh/functions/prompts" $fpath)