Environment settings for bash and derivatives

This commit is contained in:
Eryn Wells 2012-04-16 12:15:30 -07:00
parent 43c6765b05
commit 6282d07291

20
env Normal file
View file

@ -0,0 +1,20 @@
# .env
# vim: ft=zsh
#
# Environment settings for bash and derivatives
#
# Eryn Wells <eryn@erynwells.me>
export SYS=`uname -s | tr A-Z a-z`
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
[ -d /usr/X11/bin ] && PATH=$PATH:/usr/X11/bin
[ -d /opt/local/bin ] && PATH=/opt/local/bin:$PATH
[ -d $HOME/.local/bin ] && PATH=$HOME/.local/bin:$PATH
[ -d $HOME/bin ] && PATH=$HOME/bin:$PATH
export PATH
# System specific environment settings
[ -e $HOME/.env.$SYS ] && source $HOME/.env.$SYS
# Local environment settings
[ -e $HOME/.env.local ] && source $HOME/.env.local