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: http://git.madduck.net/v/etc/zsh.git
11 __prepend_dir_to_path()
15 "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;;
16 *) test -d "$dir" && path=("$dir" $path);;
21 __append_dir_to_path()
25 "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;;
26 *) test -d "$dir" && path+="$dir";;
31 __prepend_dir_to_path $BINDIR
32 __append_dir_to_path /usr/lib/surfraw