zshrc: disable manually running ssh-agent

This commit is contained in:
surtur 2023-08-18 16:02:12 +02:00
parent dfb36fe2a7
commit fefcda0019
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

16
.zshrc

@ -148,13 +148,15 @@
LANG=en_GB.UTF-8
http_proxy="http://localhost:8118"
if [ -z "$SSH_AUTH_SOCK" ]; then
eval `ssh-agent -s -t6h` > /dev/null
if [ ! -S $HOME/.ssh/ssh_auth_sock ]; then
ln -sf "$SSH_AUTH_SOCK" $HOME/.ssh/ssh_auth_sock
SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
fi
fi
## use omz plugin.
#
#if [ -z "$SSH_AUTH_SOCK" ]; then
# eval `ssh-agent -s -t6h` > /dev/null
# if [ ! -S $HOME/.ssh/ssh_auth_sock ]; then
# ln -sf "$SSH_AUTH_SOCK" $HOME/.ssh/ssh_auth_sock
# SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
# fi
#fi
export EDITOR='vim'