diff options
author | Alan Pearce | 2016-02-03 19:34:18 +0100 |
---|---|---|
committer | Alan Pearce | 2016-02-03 19:34:18 +0100 |
commit | 4a0710cba5943f961fd89385008e23984b0492e5 (patch) | |
tree | 0ee2a76202837c78af0a242481a4a763921cdf39 /tag-zsh/config | |
parent | 867e97a7c1bae699c5d043be26b44aff45fc68a0 (diff) | |
download | nixfiles-4a0710cba5943f961fd89385008e23984b0492e5.tar.lz nixfiles-4a0710cba5943f961fd89385008e23984b0492e5.tar.zst nixfiles-4a0710cba5943f961fd89385008e23984b0492e5.zip |
zsh: Don’t export ssh socket via SSH
Diffstat (limited to 'tag-zsh/config')
-rwxr-xr-x | tag-zsh/config/zsh/zshrc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc index 98fcd5e1..73dad6df 100755 --- a/tag-zsh/config/zsh/zshrc +++ b/tag-zsh/config/zsh/zshrc @@ -30,7 +30,7 @@ hosts=( users=(alan root toor) -if [[ $os == "gnu" ]] +if [[ $os == "gnu" && -z $SSH_CLIENT ]] then export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" fi |