Code:Zprofile

My .zprofile file. Environment variables for use in the zsh shell. See also Shell configuration files.

# PATH="/bin:/sbin:/usr/bin:/usr/sbin" if [ -x /usr/local/bin/softpkg ]; then eval `/usr/local/bin/softpkg` fi if [ -r /sw/bin/init.sh ]; then # Read Fink-defined environment variables . /sw/bin/init.sh fi if [ -x /opt/local/bin ]; then PATH="/opt/local/bin:$PATH" MANPATH="/opt/local/share/man:$MANPATH" fi if [ -x /usr/local/texlive/2008/bin/universal-darwin ]; then PATH="/usr/local/texlive/2008/bin/universal-darwin:$PATH" fi if [ -x /usr/local/sbin ]; then PATH="/usr/local/sbin:$PATH" fi if [ -x /opt/local/lib/mysql5/bin ]; then PATH="/opt/local/lib/mysql5/bin:$PATH" fi if [ -x /usr/local/bin ]; then PATH="/usr/local/bin:$PATH" fi if [ -x $HOME/bin ] ; then PATH="$HOME/bin:$PATH" fi if [ -x /usr/X11R6/bin ]; then PATH="$PATH:/usr/X11R6/bin" fi if [ -x /usr/games ]; then PATH="$PATH:/usr/games" fi if [ -x /Developer/usr/bin ]; then PATH="$PATH:/Developer/usr/bin" fi if [ -x /usr/local/teTeX/bin/powerpc-apple-darwin-current ]; then PATH="$PATH:/usr/local/teTeX/bin/powerpc-apple-darwin-current" fi PATH="$PATH:." MANPATH="$MANPATH:." export PATH export MANPATH if [ "$TERM" != "ANSI" ]; then # These commands are ignored on really stupid (ANSI terminal) machines, like mremote export USER=`id -un` export HOSTNAME=`/bin/hostname -s` export CLASSPATH=".:/Library/Java/Extensions" export CVS_RSH=ssh export LC_ALL=en_GB.UTF-8 export LANG=en_GB.UTF-8 fi if /usr/bin/which mate_wait 2> /dev/null | grep "^/.*/mate_wait$" > /dev/null 2>&1; then export EDITOR=mate_wait elif /usr/bin/which vim 2> /dev/null | grep "^/.*/vim$" > /dev/null 2>&1; then export EDITOR=vim elif /usr/bin/which vi 2> /dev/null | grep "^/.*/vi$" > /dev/null 2>&1; then export EDITOR=vi elif /usr/bin/which nano 2> /dev/null | grep "^/.*/nano$" > /dev/null 2>&1; then export EDITOR=nano elif /usr/bin/which pico 2> /dev/null | grep "^/.*/pico$" > /dev/null 2>&1; then export EDITOR=pico fi if [ -f $HOME/.pythonstartup ]; then export PYTHONSTARTUP="$HOME/.pythonstartup" fi if [ -x /opt/local/lib/perl5/5.8.8 ]; then export PERL5LIB="/opt/local/lib/perl5/5.8.8:/opt/local/lib/perl5/site_perl/5.8.8" export PERL5LIB fi if [ "$GLOBUS_LOCATION" = "" ] && [ -d /usr/local/globus ]; then export GLOBUS_LOCATION="/usr/local/globus" elif [ "$GLOBUS_LOCATION" = "" ] && [ -d /usr/local/gt ]; then export GLOBUS_LOCATION="/usr/local/gt" fi if [ -r "$GLOBUS_LOCATION" ]; then source $GLOBUS_LOCATION/etc/globus-user-env.sh fi
 * 1) User-defined zprofile file for zsh login shells
 * 1) Typically contains definitions of environment variables. For local variables, use .zshrc
 * 2) equivalent to ~/.login and ~/.profile for csh/tcsh and sh/bash respectively.
 * 1) Set basic PATH
 * 1) PATH defined by softpkg (required for mremote.science.uva.nl)
 * 1) Add more paths to $PATH
 * 2) Fink changes path, by adding /sw/bin and /sw/sbin
 * 1) Important paths: Add to beginning of $PATH
 * 1) Less important paths: Add to end of $PATH
 * 1) Add local folder as last option (some people argue it should go first)
 * 1) Python specifics
 * 1) Perl specifics
 * 1) Globus Toolkit specifics