X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/d2ff023f7d000c60f774beccd57cb652977b7279..77bc157163da3f5f9fd2c300733f505ffce8763c:/.zsh/zprofile/00_path?ds=inline diff --git a/.zsh/zprofile/00_path b/.zsh/zprofile/00_path deleted file mode 120000 index 520b124..0000000 --- a/.zsh/zprofile/00_path +++ /dev/null @@ -1 +0,0 @@ -../zshrc/00_path \ No newline at end of file diff --git a/.zsh/zprofile/00_path b/.zsh/zprofile/00_path new file mode 100644 index 0000000..bac01d4 --- /dev/null +++ b/.zsh/zprofile/00_path @@ -0,0 +1,25 @@ +# 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 +# + +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