From 3a161e5776e31580700b6b350abcee9d55f043da Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Sun, 19 Feb 2012 15:53:08 -0500 Subject: [PATCH] Cleaning up the bashrc additions --- install.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 140e86b..5ad5cd7 100755 --- a/install.sh +++ b/install.sh @@ -11,11 +11,10 @@ cp /etc/skel/.bashrc ~/.bashrc PWD=`pwd` -# Adds paths -echo "export PATH=\"$PWD/git:$PATH\"" >> ~/.bashrc - -# Appends the custom .bashrc file +# Adds paths and custom .bashrc echo " +export PATH=\"$PWD/git:$PATH\" + if [ -f $PWD/bashrc ] && ! shopt -oq posix; then . $PWD/bashrc fi" >> ~/.bashrc