X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/41b13e9195f67c4b89b23c6b9d7763e2d684e111..d2ff023f7d000c60f774beccd57cb652977b7279:/.zsh/zshrc/00_path?ds=sidebyside diff --git a/.zsh/zshrc/00_path b/.zsh/zshrc/00_path new file mode 100644 index 0000000..e7a18b1 --- /dev/null +++ b/.zsh/zshrc/00_path @@ -0,0 +1,25 @@ +# zprofile/90_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 +# + +for p in $HOME/bin $HOME/.bin; do + case "$PATH" in + "*:${p}:*"|"${p}:*"|"*:${p}") :;; + *) PATH="${p}:$PATH";; + esac +done + +for p in /usr/lib/surfraw; do + case "$PATH" in + "*:${p}:*"|"${p}:*"|"*:${p}") :;; + *) PATH="${PATH}:$p";; + esac +done + +# vim:ft=zsh