X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/9d7427c964aeb185289b5a7192fecb7e1416e881..e45b0db3d66ca9e041622db3d801d026fb4d3724:/.zsh/zshenv/01_path diff --git a/.zsh/zshenv/01_path b/.zsh/zshenv/01_path index 230e94f..ab1625e 100644 --- a/.zsh/zshenv/01_path +++ b/.zsh/zshenv/01_path @@ -2,7 +2,7 @@ # # Adds custom directories to the $PATH # -# Copyright © 1994–2008 martin f. krafft +# Copyright © 1994–2017 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # # Source repository: http://git.madduck.net/v/etc/zsh.git @@ -10,6 +10,7 @@ __prepend_dir_to_path() { + local dir for dir; do case "$PATH" in "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;; @@ -20,6 +21,7 @@ __prepend_dir_to_path() __append_dir_to_path() { + local dir for dir; do case "$PATH" in "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;;