# $Id: .zshenv,v 1.4 2000/08/08 22:19:51 vogelke Exp $ # Set up environment variables under zsh. # Environment settings are contained in ~/.envrc, using a generic # format that any type of shell can read. Use eset to read this # file and set variables accordingly. # # Some people insist on setting their PATH here to affect things # like ssh. Those that do should probably use $SHLVL to ensure # that this only happens the first time the shell is started (to # avoid overriding a customized environment). Also, the various # profile/rc/login files all get sourced *after* this file, so they # will override this value. One solution is to put your path-setting # code into a file named .zpath, and source it from both here (if # we're not a login shell) and from the .zprofile file (which is # only sourced if we are a login shell). if [[ $SHLVL == 1 ]]; then test -f $HOME/bin/buildenv && $HOME/bin/buildenv test -f $HOME/.envrc.sh && source $HOME/.envrc.sh fi # Set time for periodic function export PERIOD=60 # Set the default column length for "fmt". export FMTWIDTH=74 # Key bindings for "calc". export CALCBINDINGS="$HOME/.calckeys" # Set EXINIT directly, so no file has to be read to start vi. export EXINIT="set autowrite\ | set autoindent\ | set noremap\ | set redraw\ | set timeout\ | set wm=2\ | set writeany\ | set shell=/bin/sh\ | set directory=/tmp\ | map Ox k\ | map Or j\ | map Ov l\ | map Ot h\ | map \` D\ | map ; >>\ | map = <<\ | map , :set nonumber \ | map g \ | map v :'a,.!fmt \ | map V {ma}:'a,.!fmt \ | map [ oi /* * */ kkA\ | map q z.\ | map E :r /usr/local/lib/vi/vi.scan \ | map! ti' :r!date kJ28la\ "