Skip to content

Commit d7506d6

Browse files
committed
Changed the way PATHs are stored.
1 parent e42f1f7 commit d7506d6

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.bashrc

+13-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,19 @@ export XDG_DATA_HOME="$HOME/.local/share"
2828
export WORKON_HOME="$HOME/projects/python_envs"
2929
export CLOJURESCRIPT_HOME="$HOME/projects-vanilla/clojurescript/script"
3030
export VENDOR_PERL="/usr/bin/vendor_perl"
31-
export PATH=$HOME/bin:$VENDOR_PERL:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
31+
32+
PATHS_TO_ADD=(
33+
"$HOME/bin"
34+
"$VENDOR_PERL"
35+
"/usr/local/sbin"
36+
"/usr/local/bin"
37+
"/usr/sbin"
38+
"/usr/bin"
39+
"/bin"
40+
)
41+
http://stackoverflow.com/a/5905019/198348
42+
export PATH=$(set -- ${PATHS_TO_ADD[@]}; IFS=:; echo "$*")
43+
3244

3345
# make less more friendly for non-text input files, see lesspipe(1)
3446
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

0 commit comments

Comments
 (0)