From 29c9cab7ae56519f557e4601129f33f3e4a3fca6 Mon Sep 17 00:00:00 2001 From: Mika Suomalainen Date: Sat, 16 Feb 2013 10:29:01 +0200 Subject: [PATCH] bashrc & zshrc: I am seeing messages even with that if-else... --- bashrc | 4 +--- zshrc | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/bashrc b/bashrc index 35d74c98..f2b381ac 100644 --- a/bashrc +++ b/bashrc @@ -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 ##### diff --git a/zshrc b/zshrc index 5a330ef0..8e5d3b5b 100644 --- a/zshrc +++ b/zshrc @@ -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