From: Don Armstrong Date: Fri, 28 Jul 2006 03:39:45 +0000 (+0000) Subject: add abaca support and hostname support for multi-mount home directories X-Git-Url: https://git.donarmstrong.com/?p=home-base.git;a=commitdiff_plain;h=56c474f4bb506ca630136cc349f7f47f9b733375 add abaca support and hostname support for multi-mount home directories --- diff --git a/.bashrc b/.bashrc index 63ffd49..eebab56 100644 --- a/.bashrc +++ b/.bashrc @@ -52,9 +52,12 @@ if [ "$PS1" ]; then if [ -e ~/.ssh/ssh_agent_info ] && \ kill -0 "$(awk -F '[=;]' '/^SSH_AGENT_PID/{print $2}' ~/.ssh/ssh_agent_info)"; then . ~/.ssh/ssh_agent_info > /dev/null + elif [ -e ~/.ssh/ssh_agent_info_$(hostname) ] && \ + kill -0 "$(awk -F '[=;]' '/^SSH_AGENT_PID/{print $2}' ~/.ssh/ssh_agent_info_$(hostname))"; then + . ~/.ssh/ssh_agent_info_$(hostname) > /dev/null else - ssh-agent -s > ~/.ssh/ssh_agent_info - . ~/.ssh/ssh_agent_info > /dev/null + ssh-agent -s > ~/.ssh/ssh_agent_info_$(hostname) + . ~/.ssh/ssh_agent_info_$(hostname) > /dev/null fi; fi; diff --git a/.ssh/config b/.ssh/config index 8cf6926..1a99ea0 100644 --- a/.ssh/config +++ b/.ssh/config @@ -44,3 +44,6 @@ Host debianarchive.lab.propel.com Host *.lab.propel.com User darmstrong IdentityFile ~/.ssh/identity_propel +Host *.abaca.com + User darmstrong + IdentityFile ~/.ssh/identity_propel