projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release new version 0.12.6
[grml-etc-core.git]
/
etc
/
zsh
/
zshenv
diff --git
a/etc/zsh/zshenv
b/etc/zsh/zshenv
index
954ca38
..
d696b56
100644
(file)
--- a/
etc/zsh/zshenv
+++ b/
etc/zsh/zshenv
@@
-90,17
+90,21
@@
if (( EUID != 0 )); then
)
else
path=(
)
else
path=(
+ $HOME/bin
+ /usr/local/sbin
+ /usr/local/bin
/sbin
/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/sbin
/usr/bin
- /usr/local/sbin
- /usr/local/bin
"${ADDONS}"
"${path[@]}"
)
fi
"${ADDONS}"
"${path[@]}"
)
fi
+# remove empty components to avoid '::' ending up + resulting in './' being in $PATH
+path=( "${path[@]:#}" )
+
typeset -U path
# less (:=pager) options:
typeset -U path
# less (:=pager) options: