Permalink
Browse files

removed a PATH export from .bashrc and fixed the conditional one in .…

…bash_profile
  • Loading branch information...
1 parent 90baeda commit 7ff1836b3b702cc9f6c9fd50795f6fafa8181315 @matijs committed Jan 27, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −1 .bash_profile
  2. +0 −2 .bashrc
View
@@ -6,7 +6,7 @@
# check whether the current user has a ~/bin and if so add it to the PATH
[ -d "$HOME/bin" ] && export PATH="$HOME/bin:$PATH";
# check whether rvm was installed and if so add it to the PATH
-[ -d "$HOME/.rvm" ] && export PATH="$HOME/.rvm:$PATH";
+[ -d "$HOME/.rvm/bin" ] && export PATH="$HOME/.rvm/bin:$PATH";
# remove duplicates from the path
export PATH=`awk -F: '{for(i=1;i<=NF;i++){if(!($i in a)){a[$i];printf s$i;s=":"}}}'<<<$PATH`;
View
@@ -1,3 +1 @@
source $HOME/.bash_profile
-
-PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

0 comments on commit 7ff1836

Please sign in to comment.