Permalink
Browse files

Only worry about "$HOME/bin" in .zshenv

Let .shrc take care of everything else
  • Loading branch information...
1 parent f86b865 commit b2c2776ccf10366902c2f1c2c8e252d45ec02538 @tpope committed Oct 21, 2012
Showing with 4 additions and 8 deletions.
  1. +4 −8 .zshenv
View
12 .zshenv
@@ -1,14 +1,10 @@
# ~/.zshenv
# vim:set et sw=2:
-typeset -U path
-for dir in /bin /usr/ucb /usr/local/bin /opt/local/bin /opt/sfw/bin "$HOME/bin"; do
- [ -d "$dir" ] && path=($dir $path)
-done
-for dir in /usr/bin /usr/bin/X11 /opt/sfw/kde/bin /usr/openwin/bin /usr/dt/bin /usr/games /usr/bin/surfraw-elvi /var/lib/gems/1.9.1/bin /var/lib/gems/1.8/bin /usr/local/sbin /usr/sbin /sbin /usr/etc; do
- [ -d "$dir" ] && path=($path $dir)
-done
-path=($HOME/bin $path /usr/bin/X11 /usr/games /usr/local/sbin /usr/sbin /sbin)
+case ":$PATH:" in
+ *:"$HOME/bin":*) ;;
+ *) PATH="$HOME/bin:$PATH" ;;
+esac
if [ -f "$HOME/.locale" -a -z "$LANG" -a -z "$LC_ALL" ]; then
LANG="`cat "$HOME/.locale"`"

0 comments on commit b2c2776

Please sign in to comment.