]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/zshenv/01_path
add zsh modes to everything
[zsh.git] / .zsh / zshenv / 01_path
index 230e94f14aa22f1c71a8d2a40e726644718f596c..0a68895bda1765ec4a71d3a30b9b5874b50f337b 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zprofile/00_path
 #
 # Adds custom directories to the $PATH
@@ -5,11 +6,12 @@
 # Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
 # Released under the terms of the Artistic Licence 2.0
 #
-# Source repository: http://git.madduck.net/v/etc/zsh.git
+# Source repository: git://git.madduck.net/etc/zsh.git
 #
 
 __prepend_dir_to_path()
 {
+  local dir
   for dir; do
     case "$PATH" in
       "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;;
@@ -20,6 +22,7 @@ __prepend_dir_to_path()
 
 __append_dir_to_path()
 {
+  local dir
   for dir; do
     case "$PATH" in
       "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;;