# Andrew McNabb's shrc (zsh and bash compatible rc file) export PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin" # any of the following that exist will be added to PATH prepath=($HOME/bin $HOME/.local/bin) postpath=(/usr/bin/X11 /usr/games/bin /usr/kerberos/bin /usr/kerberos/sbin /fslapps/git-1.5.3.8/bin /fslapps/Python-2.5.2/bin /fslapps/subversion-1.4.5/bin /opt/mpiexec/bin) # any of the following that exist will be added to PYTHONPATH pythondirs=($HOME/python $HOME/svn/python $HOME/lib/python) ############################################################################## # Environment export EDITOR="vim" export PAGER="less" export LANG="en_US.UTF-8" export LC_ALL="en_US.UTF-8" export COLORFGBG="default;default" ############################################################################## # Path for dir in ${prepath[@]} do if [[ -d $dir ]] then export PATH="$dir:$PATH" fi done for dir in ${postpath[@]} do if [[ -d $dir ]] then export PATH="$PATH:$dir" fi done ############################################################################## # Python Path for dir in ${pythondirs[@]} do if [[ -d $dir ]] then if [[ $PYTHONPATH == "" ]] then export PYTHONPATH="$dir" else export PYTHONPATH="$PYTHONPATH:$dir" fi fi done ############################################################################## # Fink: if [ -f /sw/bin/init.sh ] then source /sw/bin/init.sh export CPATH=/sw/include else export LD_LIBRARY_PATH="/usr/lib/wine/lib" fi ############################################################################## # Aliases # Try to get myself in the habit of typing vim: unalias vi >/dev/null 2>&1 function vi () { echo Vim is better than Vi; } #function svnco { svn co svn+ssh://svn.cs.byu.edu/adminsvn/$1 $2; } # I hate ls with coloring unalias ls >/dev/null 2>&1 if [[ `uname` != Darwin ]] then alias aoeu="xmodmap ~/.xmm-qwerty" alias asdf="xmodmap ~/.xmm-dvorak" fi