]> arthur.barton.de Git - ax-zsh.git/commitdiff
Better sort search path, and prefere "sbin" over "bin"
authorAlexander Barton <alex@barton.de>
Sat, 9 Jul 2016 15:01:33 +0000 (17:01 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 9 Jul 2016 15:01:33 +0000 (17:01 +0200)
core/40_path/40_path.zprofile

index 8f0a9f2a6ea31054539f4fa90db07308be7b0f54..4a5e7cfaa3b97d369b25f82c657a8fb90e0c5412 100644 (file)
@@ -5,7 +5,7 @@
 if [[ -x /usr/libexec/path_helper ]]; then
        eval "$(/usr/libexec/path_helper)"
 else
-       PATH="/usr/bin:/bin:/usr/sbin:/sbin"
+       PATH="/usr/sbin:/usr/bin:/sbin:/bin"
 fi
 typeset -Ux PATH
 
@@ -16,8 +16,8 @@ for d (
        /usr/pkg/bin
        /usr/local/bin
        /usr/local/sbin
-       /opt/*/sbin(N)
-       /opt/*/bin(N)
+       /opt/*/bin(NOn)
+       /opt/*/sbin(NOn)
        ~/Applications(N)
 ); do
        [ -d "$d" ] && path=("$d" $path)