comparison .zshenv @ 39:62bfb554ab85

Reorganize zsh files so that bash can work as well.
author Augie Fackler <durin42@gmail.com>
date Mon, 26 Jan 2009 13:21:00 -0600
parents c30d68fbd368
children 6a781c14cdfd
comparison
equal deleted inserted replaced
38:f70862dadf83 39:62bfb554ab85
15 SAVEHIST='10000' 15 SAVEHIST='10000'
16 setopt extended_history 16 setopt extended_history
17 setopt hist_save_no_dups # don't save duplicates in history 17 setopt hist_save_no_dups # don't save duplicates in history
18 setopt inc_append_history # append to history file so multiple processes DTRT 18 setopt inc_append_history # append to history file so multiple processes DTRT
19 19
20 # Get me colors in ls 20 source $HOME/.shell.d/00.path_manipulation.sh
21 export CLICOLOR="yes" 21 source $HOME/.shell.d/50.common_env.sh
22 export LSCOLORS="exgxcxDxCxEGEDcbcgExEx"
23
24 # Generic environment variables
25 export PAGER='less -M -X'
26 export EDITOR='vim'
27 export SVN_MERGE='svn-hgmerge.py'
28 export CVS_RSH='ssh'
29 export LESS="-R"
30
31 source $HOME/.zsh/00.path_manipulation.zsh
32 insert_path_element ~/unixSoft/bin
33 unset MANPATH # smart man(1)s autodetect that from PATH.
34
35 # Python stuff
36 export PYTHONSTARTUP="$HOME/.python/startup.py"
37
38 local MYPYTHONPATH="$HOME/unixSoft/lib/python:/opt/durin/lib/svn-python"
39 if [[ "$PYTHONPATH" == "" ]] ; then
40 export PYTHONPATH="$MYPYTHONPATH"
41 else
42 export PYTHONPATH="$PYTHONPATH:$MYPYTHONPATH"
43 fi
44 22
45 # prep to parse the zshenv-machine 23 # prep to parse the zshenv-machine
46 if [[ "x$TZ" == "x" ]] ; then 24 if [[ "x$TZ" == "x" ]] ; then
47 export MACHINE_TZ="xNoTimeZone" 25 export MACHINE_TZ="xNoTimeZone"
48 local DEFAULT_TZ="America/Detroit" 26 local DEFAULT_TZ="America/Detroit"
49 fi 27 fi
50 28
51 # Do this right before the timezone stuff 29 # Do this right before the timezone stuff
52 if [[ -a ~/.zshenv-machine ]]; then 30 if [[ -a ~/.zshenv-machine ]]; then
53 source ~/.zshenv-machine 31 source ~/.zshenv-machine
54 fi 32 fi
55 33
56 # do this last so that we can tell if .zshenv-machine set the timezone 34 # do this last so that we can tell if .zshenv-machine set the timezone
57 if [[ "x$TZ" == "x" ]] ; then 35 if [[ "x$TZ" == "x" ]] ; then
58 if [ "$MACHINE_TZ" = "xNoTimeZone" ]; then 36 if [ "$MACHINE_TZ" = "xNoTimeZone" ]; then
59 export TZ="$DEFAULT_TZ" 37 export TZ="$DEFAULT_TZ"
60 else 38 else
61 export TZ="$MACHINE_TZ" 39 export TZ="$MACHINE_TZ"
62 fi 40 fi
63 fi 41 fi