diff options
-rw-r--r-- | profile.dot.link | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/profile.dot.link b/profile.dot.link index b7b6470..100d34f 100644 --- a/profile.dot.link +++ b/profile.dot.link @@ -129,7 +129,13 @@ export PATH=$PATH export WORKPATH="$HOME/file:$HOME/data:$HOME/code:$HOME/apps:$HOME/apps/dotfiles/modules" # See http://www.caliban.org/bash/#bashtips -export CDPATH=".:$HOME:$WORKPATH" +if [ "$SETCDPATH" != "false" ]; then + if [ -z "$CDPATH" ]; then + export CDPATH=".:$HOME:$WORKPATH" + else + export CDPATH=".:$HOME:$WORKPATH:$CDPATH" + fi +fi # Default editor #if [ ! -z "$DISPLAY" ]; then |