diff .zshenv @ 0:c30d68fbd368

Initial import from svn.
author Augie Fackler <durin42@gmail.com>
date Wed, 26 Nov 2008 10:56:09 -0600
parents
children 62bfb554ab85
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/.zshenv
@@ -0,0 +1,63 @@
+# 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