bashrc & zshrc: I am seeing messages even with that if-else...

This commit is contained in:
Mika Suomalainen 2013-02-16 10:29:01 +02:00
parent 7ecda2f30e
commit 29c9cab7ae
2 changed files with 2 additions and 6 deletions

4
bashrc
View File

@ -208,9 +208,7 @@ fi
# Copied from http://homepages.see.leeds.ac.uk/~eeaol/notes/2012/03/how_to_only_type_ssh_passphrase_once/
export SSH_AUTH_SOCK=/tmp/$USER.agent
if [[ -n $SSH_CONNECTION ]]; then
ssh-agent -a /tmp/$USER.agent
fi
ssh-agent -a /tmp/$USER.agent
##### Aliases RJ706I #####

4
zshrc
View File

@ -140,9 +140,7 @@ UNAME=`uname`
# Copied from http://homepages.see.leeds.ac.uk/~eeaol/notes/2012/03/how_to_only_type_ssh_passphrase_once/
export SSH_AUTH_SOCK=/tmp/$USER.agent
if [[ -n $SSH_CONNECTION ]]; then
ssh-agent -a /tmp/$USER.agent
fi
ssh-agent -a /tmp/$USER.agent
# If we are on Mac, show hidden files in Finder and enable AirDrop over Ethernet and on unsupported (by Apple) Macs
if [[ $UNAME = "Darwin" ]]; then