X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshenv;h=d696b56937a66a1cd8990ac004b763376a6b99c8;hb=69488205afe631b2d9489d0941d3290e1577faf9;hp=954ca389b679979beaaaa0bfd45ca7383d9660be;hpb=dbd02d77939c414b67b808fab0d5624fb836421b;p=grml-etc-core.git diff --git a/etc/zsh/zshenv b/etc/zsh/zshenv index 954ca38..d696b56 100644 --- a/etc/zsh/zshenv +++ b/etc/zsh/zshenv @@ -90,17 +90,21 @@ if (( EUID != 0 )); then ) else path=( + $HOME/bin + /usr/local/sbin + /usr/local/bin /sbin /bin /usr/sbin /usr/bin - /usr/local/sbin - /usr/local/bin "${ADDONS}" "${path[@]}" ) fi +# remove empty components to avoid '::' ending up + resulting in './' being in $PATH +path=( "${path[@]:#}" ) + typeset -U path # less (:=pager) options: