add abaca support and hostname support for multi-mount home directories
authorDon Armstrong <don@donarmstrong.com>
Fri, 28 Jul 2006 03:39:45 +0000 (03:39 +0000)
committerDon Armstrong <don@donarmstrong.com>
Fri, 28 Jul 2006 03:39:45 +0000 (03:39 +0000)
.bashrc
.ssh/config

diff --git a/.bashrc b/.bashrc
index 63ffd49..eebab56 100644 (file)
--- 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;
     
index 8cf6926..1a99ea0 100644 (file)
@@ -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