X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.zsh%2Fzprofile%2F00_path;fp=.zsh%2Fzprofile%2F00_path;h=0000000000000000000000000000000000000000;hb=031352278be1cb6c716d65d73cb2dd373628c34d;hp=230e94f14aa22f1c71a8d2a40e726644718f596c;hpb=a2a79686218f805dd5a7cfbda210a517fe5c4934;p=zsh.git diff --git a/.zsh/zprofile/00_path b/.zsh/zprofile/00_path deleted file mode 100644 index 230e94f..0000000 --- a/.zsh/zprofile/00_path +++ /dev/null @@ -1,34 +0,0 @@ -# zprofile/00_path -# -# Adds custom directories to the $PATH -# -# Copyright © 1994–2008 martin f. krafft -# Released under the terms of the Artistic Licence 2.0 -# -# Source repository: http://git.madduck.net/v/etc/zsh.git -# - -__prepend_dir_to_path() -{ - for dir; do - case "$PATH" in - "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;; - *) test -d "$dir" && path=("$dir" $path);; - esac - done -} - -__append_dir_to_path() -{ - for dir; do - case "$PATH" in - "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;; - *) test -d "$dir" && path+="$dir";; - esac - done -} - -__prepend_dir_to_path $BINDIR -__append_dir_to_path /usr/lib/surfraw - -# vim:ft=zsh