[zsh] Override the tmux auth socket on demand
This commit is contained in:
parent
f2c801064e
commit
ef2d487d3f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue