diff --git a/.path b/.path index f4a4730c..4d68c6c7 100644 --- a/.path +++ b/.path @@ -1,3 +1,10 @@ -export PATH="$PATH:$HOME/.local/lib/python2.6/site-packages" -# put usr/local/bin first. -export PATH=/usr/local/bin:`echo $PATH | sed "s|:*/usr/local/bin||" | sed "s|^:||"` \ No newline at end of file +function add_to_front_of_path { + export PATH=$@:`echo $PATH | sed "s|:*$@||g" | sed "s|^:||"` +} + +function add_to_back_of_path { + export PATH=`echo $PATH | sed "s|:*$@||g" | sed "s|^:||"`:$@ +} + +add_to_back_of_path "$HOME/.local/lib/python2.6/site-packages" +add_to_front_of_path "/usr/local/bin" diff --git a/bin/subl b/bin/subl deleted file mode 120000 index 452a9897..00000000 --- a/bin/subl +++ /dev/null @@ -1 +0,0 @@ -/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl \ No newline at end of file diff --git a/oh-my-zsh b/oh-my-zsh index 13c54cef..5dd2ef77 160000 --- a/oh-my-zsh +++ b/oh-my-zsh @@ -1 +1 @@ -Subproject commit 13c54cef7a68b7c66c813a1775ded352da0059e4 +Subproject commit 5dd2ef776a0157e937279bde623ce812d24cd64a