Move some settings from profile to zshenv

.zshenv is run everytime a zsh instance is started, including subshells and the
like. Use this file, now, to set things like PATH and such that are used
frequently.

Add a setup symlink for .zshenv
This commit is contained in:
Eryn Wells 2011-09-13 11:26:35 -07:00
parent 7d308754fc
commit 8799338169
3 changed files with 27 additions and 16 deletions

25
zshenv Normal file
View file

@ -0,0 +1,25 @@
# .zshenv
# vim: ft=zsh
# Eryn Wells <eryn@erynwells.me>
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/X11/bin
[ -d /opt/local/bin ] && PATH=$PATH:/opt/local/bin
[ -d $HOME/.local/bin ] && PATH=$PATH:$HOME/.local/bin
[ -d $HOME/bin ] && PATH=$PATH:$HOME/bin
PAGER="less"
MANPAGER=$PAGER
EDITOR="vim"
VISUAL=$EDITOR
LESSHISTFILE="-"
GREP_OPTIONS="--color=auto"
GREP_COLOR="1;32"
export PATH \
PAGER MANPAGER \
EDITOR VISUAL \
LESSHISTFILE \
GREP_OPTIONS GREP_COLOR
[ `uname -s` = "Linux" ] && export MAIL="/var/mail/$USER"