view .zshenv @ 18:30467b2328cb

Ignore gemrc
author Augie Fackler <durin42@gmail.com>
date Fri, 05 Dec 2008 11:33:02 -0600
parents c30d68fbd368
children 62bfb554ab85
line wrap: on
line source

# generic settings
ulimit -c 0 # no core dumps
setopt CORRECT
setopt autolist # List tab-complete opts after the first tab
setopt c_bases
setopt autocd # Allows one to type just a dir name to cd to that dir
complete='enhance'
WORDCHARS=${WORDCHARS//[\/.]}
setopt no_beep # don't beep about stuff

# History Settings
HISTFILE=~/.zhistory
setopt histignoredups
HISTSIZE='10000'
SAVEHIST='10000'
setopt extended_history
setopt hist_save_no_dups # don't save duplicates in history
setopt inc_append_history # append to history file so multiple processes DTRT

# Get me colors in ls
export CLICOLOR="yes"
export LSCOLORS="exgxcxDxCxEGEDcbcgExEx"

# Generic environment variables
export PAGER='less -M -X'
export EDITOR='vim'
export SVN_MERGE='svn-hgmerge.py'
export CVS_RSH='ssh'
export LESS="-R"

source $HOME/.zsh/00.path_manipulation.zsh
insert_path_element ~/unixSoft/bin
unset MANPATH # smart man(1)s autodetect that from PATH.

# Python stuff
export PYTHONSTARTUP="$HOME/.python/startup.py"

local MYPYTHONPATH="$HOME/unixSoft/lib/python:/opt/durin/lib/svn-python"
if [[ "$PYTHONPATH" == "" ]] ; then
	export PYTHONPATH="$MYPYTHONPATH"
else
	export PYTHONPATH="$PYTHONPATH:$MYPYTHONPATH"
fi

# prep to parse the zshenv-machine
if [[ "x$TZ" == "x" ]] ; then
	export MACHINE_TZ="xNoTimeZone"
	local DEFAULT_TZ="America/Detroit"
fi

# Do this right before the timezone stuff
if [[ -a ~/.zshenv-machine ]]; then
	source ~/.zshenv-machine
fi

# do this last so that we can tell if .zshenv-machine set the timezone
if [[ "x$TZ" == "x" ]] ; then
	if [ "$MACHINE_TZ" = "xNoTimeZone" ]; then
	  export TZ="$DEFAULT_TZ"
	else
		export TZ="$MACHINE_TZ"
	fi
fi