]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/zshenv/01_path
if /var/list/.bin exists, prepend it to path
[zsh.git] / .zsh / zshenv / 01_path
index 230e94f14aa22f1c71a8d2a40e726644718f596c..3121e9c9317e5c655f5fa26950744e16c51c7261 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}") :;;
@@ -29,6 +32,6 @@ __append_dir_to_path()
 }
 
 __prepend_dir_to_path $BINDIR
-__append_dir_to_path /usr/lib/surfraw
+__prepend_dir_to_path /var/list/.bin
 
 # vim:ft=zsh