From af0cdc5b9052a7af6f9b317c196340f14c1d9f18 Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Tue, 29 Jun 2010 21:43:59 +1000 Subject: [PATCH] Fix CDPATH --- bash/common | 2 +- bash/exports | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bash/common b/bash/common index 65f3ec2..74bad2c 100644 --- a/bash/common +++ b/bash/common @@ -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 CDPATH=".:~" +export CDPATH=".:${HOME}" system_name=`uname -s` # Sets 'Darwin' or 'Linux' etc diff --git a/bash/exports b/bash/exports index 10eb71d..97a2bde 100644 --- a/bash/exports +++ b/bash/exports @@ -2,7 +2,7 @@ if [ $system_name = 'Darwin' ]; then export EDITOR='mate -w' export PATH="/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/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' else export EDITOR='nano -w'