From 66e0c46c40148f44edc4a1ddfd1c63b4e577ab3f Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 7 May 2008 19:18:12 +0100 Subject: [PATCH] set path and locale at login --- .zsh/zprofile/00_path | 26 +++++++++++++++++++++++++- .zsh/{zshrc => zprofile}/10_locale | 2 +- .zsh/zshrc/00_path | 25 ------------------------- 3 files changed, 26 insertions(+), 27 deletions(-) mode change 120000 => 100644 .zsh/zprofile/00_path rename .zsh/{zshrc => zprofile}/10_locale (99%) delete mode 100644 .zsh/zshrc/00_path 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 diff --git a/.zsh/zshrc/10_locale b/.zsh/zprofile/10_locale similarity index 99% rename from .zsh/zshrc/10_locale rename to .zsh/zprofile/10_locale index 0c69342..07cbf44 100644 --- a/.zsh/zshrc/10_locale +++ b/.zsh/zprofile/10_locale @@ -1,4 +1,4 @@ -# zshrc/10_locale +# zprofile/10_locale # # Defines locale settings # diff --git a/.zsh/zshrc/00_path b/.zsh/zshrc/00_path deleted file mode 100644 index bac01d4..0000000 --- a/.zsh/zshrc/00_path +++ /dev/null @@ -1,25 +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 -# - -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.5