From b0a03b1f32f3f6f1be42c166bb14e22238801051 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 10 May 2008 10:15:51 +0100 Subject: [PATCH] keep variable local in path functions --- .zsh/zshenv/01_path | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.zsh/zshenv/01_path b/.zsh/zshenv/01_path index 230e94f..f4a248d 100644 --- a/.zsh/zshenv/01_path +++ b/.zsh/zshenv/01_path @@ -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}") :;; -- 2.39.5