From 256504a4a75b9b4f0ef71031cacc53fd4034a98d Mon Sep 17 00:00:00 2001 From: Nathan Kinkade Date: Thu, 19 Jun 2014 10:24:09 -0400 Subject: Only do certain actions if on my local machine. --- bashrc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/bashrc b/bashrc index 9003f52..fcc5dfb 100644 --- a/bashrc +++ b/bashrc @@ -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 -- cgit v1.2.3