3 # Adds custom directories to the $PATH
5 # Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
6 # Released under the terms of the Artistic Licence 2.0
8 # Source repository: git://git.madduck.net/etc/zsh.git
11 __prepend_dir_to_path()
16 "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;;
17 *) test -d "$dir" && path=("$dir" $path);;
22 __append_dir_to_path()
27 "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;;
28 *) test -d "$dir" && path+="$dir";;
33 __prepend_dir_to_path $BINDIR
34 __append_dir_to_path /usr/lib/surfraw