]> git.donarmstrong.com Git - home-base.git/commitdiff
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 63ffd49d3873befe7de5566bc0b263382e604411..eebab56bf4cef9bcd79f6512548d6ce02dcd16d6 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
        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
        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;
     
        fi;
     fi;
     
index 8cf6926df10d22552bc500c2f46c90f1235756bd..1a99ea03e293a36fc8a64909a30379119a0613c2 100644 (file)
@@ -44,3 +44,6 @@ Host debianarchive.lab.propel.com
 Host *.lab.propel.com
   User darmstrong
   IdentityFile ~/.ssh/identity_propel
 Host *.lab.propel.com
   User darmstrong
   IdentityFile ~/.ssh/identity_propel
+Host *.abaca.com
+  User darmstrong
+  IdentityFile ~/.ssh/identity_propel