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

17
profile
View file

@ -1,23 +1,11 @@
# .profile
# vim: ft=zsh
# Eryn Wells <eryn@3b518c.com>
# Environment settings
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/X11/bin
PAGER="less"
MANPAGER="less"
EDITOR="vim"
VISUAL=$EDITOR
LESSHISTFILE="-"
GREP_OPTIONS="--color=auto"
GREP_COLOR="1;32"
export PAGER MANPAGER EDITOR VISUAL LESSHISTFILE GREP_OPTIONS GREP_COLOR
# Eryn Wells <eryn@erynwells.me>
# Gotta do some machine specific setup
arch=`uname -s`
case $arch in
Linux)
export MAIL="/var/mail/$USER"
alias iptls='sudo iptables --line-numbers -nv -L'
alias ip6tls='sudo ip6tables --line-numbers -nv -L'
alias rlx="xrdb $HOME/.Xdefaults"
@ -26,7 +14,6 @@ case $arch in
Darwin)
alias indent='gnuindent'
alias acls='/bin/ls -le'
PATH=/opt/local/bin:$PATH
;;
esac
@ -35,8 +22,6 @@ esac
export NETHACKOPTIONS="color"
[ -e $HOME/.profile-local ] && source $HOME/.profile-local
[ -d $HOME/.local/bin ] && PATH=$HOME/.local/bin:$PATH
[ -d $HOME/bin ] && PATH=$HOME/bin:$PATH
# Start SSH agent for password-less logins
if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]