]> arthur.barton.de Git - ax-zsh.git/blobdiff - core/40_path/40_path.zprofile
Refactoring: Always use "[[" (instead of "[")
[ax-zsh.git] / core / 40_path / 40_path.zprofile
index 0ee2a17966528e89a95338c156f10c7cefdc6300..03490293ad85492718fe7c64ee0b6ba231da8e2e 100644 (file)
@@ -30,7 +30,7 @@ for d (
        ~/sbin
        ~/Applications
 ); do
-       [ -d "$d" ] && path=("$d" $path)
+       [[ -d "$d" ]] && path=("$d" $path)
 done
 
 # Append additional search paths
@@ -39,7 +39,7 @@ for d (
        /usr/local/games
        /usr/games
 ); do
-       [ -d "$d" ] && path=($path "$d")
+       [[ -d "$d" ]] && path=($path "$d")
 done
 
 # Set default MANPATH
@@ -55,7 +55,7 @@ if [[ $? -ne 0 ]]; then
                /usr/share/man
                /usr/local/share/man
        ); do
-               [ -d "$d" ] && manpath=($manpath "$d")
+               [[ -d "$d" ]] && manpath=($manpath "$d")
        done
 fi
 typeset -Ux MANPATH