X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/b0a03b1f32f3f6f1be42c166bb14e22238801051..33230b65afa1076218abff057d0bbcc7486af0a8:/.zsh/zshenv/01_path?ds=inline diff --git a/.zsh/zshenv/01_path b/.zsh/zshenv/01_path deleted file mode 100644 index f4a248d..0000000 --- a/.zsh/zshenv/01_path +++ /dev/null @@ -1,36 +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() -{ - local dir - for dir; do - case "$PATH" in - "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;; - *) test -d "$dir" && path=("$dir" $path);; - esac - done -} - -__append_dir_to_path() -{ - local dir - 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