]> arthur.barton.de Git - ax-zsh.git/commitdiff
20_home: PATH is handled in 40_path
authorAlexander Barton <alex@barton.de>
Sun, 9 Dec 2018 19:34:06 +0000 (20:34 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 9 Dec 2018 19:34:06 +0000 (20:34 +0100)
Remove duplicate code.

core/20_home/20_home.zprofile

index adab90b318f3e78773ca735ac2ccffd60ee016e2..4bad86a4b37f8fb6dadc7a41afabb14789042879 100644 (file)
@@ -7,10 +7,3 @@
 [[ -w "/usr/local/home/$LOGNAME" ]] \
        && export LOCAL_HOME="/usr/local/home/$LOGNAME" \
        || export LOCAL_HOME="$HOME"
-
-# Update PATH to include directories inside of the $HOME directory
-typeset -U path
-for dir in ~/bin ~/sbin ~/Applications; do
-       [[ -d "$dir" ]] && path[1,0]="$dir"
-done
-unset dir