[zsh] Override the tmux auth socket on demand

This commit is contained in:
Sebastian Schulze 2019-01-25 21:42:40 +01:00
parent f2c801064e
commit ef2d487d3f
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,11 @@ letterup() { take $1 && cp -a ~/Documents/Personal/Brief-Vorlage/2017-LaTeX/* .;
zplug load
# Override the tmux ssh auth sock
if [ "$SSH_AUTH_SOCK" != "~/.ssh/ssh_auth_sock" ]; then
ln -sf $SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock
fi
# Work around a broken autocompletion https://github.com/gopasspw/gopass/issues/585
source <(gopass completion zsh | head -n -1 | tail -n +2)
compdef _gopass gopass