Fix CDPATH

pull/2/head
Bodaniel Jeanes 2010-06-29 21:43:59 +10:00
parent cec2cd5cce
commit af0cdc5b90
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/local/mongodb/bin:/usr/local/pgsql/bin:/usr/X11/bin:/opt/local/bin export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/local/mongodb/bin:/usr/local/pgsql/bin:/usr/X11/bin:/opt/local/bin
export CDPATH=".:~" export CDPATH=".:${HOME}"
system_name=`uname -s` # Sets 'Darwin' or 'Linux' etc system_name=`uname -s` # Sets 'Darwin' or 'Linux' etc

View File

@ -2,7 +2,7 @@ if [ $system_name = 'Darwin' ]; then
export EDITOR='mate -w' export EDITOR='mate -w'
export PATH="/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/:$PATH" export PATH="/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/:$PATH"
export PATH="/Library/PostgreSQL8/bin/:$PATH" export PATH="/Library/PostgreSQL8/bin/:$PATH"
export CDPATH="$CDPATH:~/Code/*:~/Sites/*" CDPATH="${CDPATH}:${HOME}/Code/Mocra/:${HOME}/Code/Personal:${HOME}/Sites/Mocra/:${HOME}/Sites/Personal/"
export GEM_OPEN_EDITOR='mate' export GEM_OPEN_EDITOR='mate'
else else
export EDITOR='nano -w' export EDITOR='nano -w'