diff options
| -rw-r--r-- | bashrc | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -76,11 +76,6 @@ if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi -# setup keychain -/usr/bin/keychain ~/.ssh/id_dsa -/usr/bin/keychain ~/.ssh/id_rsa -. ~/.keychain/${HOSTNAME}-sh - # set a reasonable EDITOR export EDITOR=vim @@ -96,5 +91,13 @@ cd() { # ifconfig lives in sbin export PATH=$PATH:/sbin -# custom keyboard mappings -xmodmap ~/.Xmodmap +# Only do these things on local machine +if [ $(hostname) == 'npk' ]; then + # setup keychain + /usr/bin/keychain ~/.ssh/id_dsa + /usr/bin/keychain ~/.ssh/id_rsa + . ~/.keychain/${HOSTNAME}-sh + + # custom keyboard mappings + xmodmap ~/.Xmodmap +fi |
