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:
parent
7d308754fc
commit
8799338169
3 changed files with 27 additions and 16 deletions
25
zshenv
Normal file
25
zshenv
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue