From d2ff023f7d000c60f774beccd57cb652977b7279 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 6 May 2008 11:03:16 +0100 Subject: [PATCH] customise $PATH --- .zsh/zprofile/00_path | 1 + .zsh/zshrc/00_path | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 120000 .zsh/zprofile/00_path create mode 100644 .zsh/zshrc/00_path diff --git a/.zsh/zprofile/00_path b/.zsh/zprofile/00_path new file mode 120000 index 0000000..520b124 --- /dev/null +++ b/.zsh/zprofile/00_path @@ -0,0 +1 @@ +../zshrc/00_path \ No newline at end of file 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 -- 2.39.2