4 # Adds custom directories to the $PATH
6 # Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
7 # Released under the terms of the Artistic Licence 2.0
9 # Source repository: git://git.madduck.net/etc/zsh.git
12 __prepend_dir_to_path()
17 "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;;
18 *) test -d "$dir" && path=("$dir" $path);;
23 __append_dir_to_path()
28 "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;;
29 *) test -d "$dir" && path+="$dir";;
34 __prepend_dir_to_path $BINDIR
35 __append_dir_to_path /usr/lib/surfraw