Add a hook to set the gpg-agent tty
This commit is contained in:
parent
9539341e1e
commit
cccdd724e4
1 changed files with 7 additions and 0 deletions
|
@ -35,6 +35,13 @@ if grep 'enable-ssh-support' "$_gpg_agent_conf" &> /dev/null; then
|
||||||
|
|
||||||
# Load the SSH module for additional processing.
|
# Load the SSH module for additional processing.
|
||||||
pmodload 'ssh'
|
pmodload 'ssh'
|
||||||
|
|
||||||
|
# ssh doesn't set the gpg-agent tty when asking for the key.
|
||||||
|
# This updates the tty before every command as a workaround
|
||||||
|
function _gpg-agent-update-tty() {
|
||||||
|
gpg-connect-agent updatestartuptty /bye > /dev/null
|
||||||
|
}
|
||||||
|
add-zsh-hook preexec _gpg-agent-update-tty
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Clean up.
|
# Clean up.
|
||||||
|
|
Loading…
Add table
Reference in a new issue