Enable tracing of the initialization
[zsh.git] / .zsh / 10_Environment.zsh
index cf7d3cf..391f7ab 100644 (file)
@@ -2,30 +2,6 @@
 
 export SHELL=`which zsh`
 
-## Colors
-c_='\e['$color[none]";"
-_c=m
-C_="%{$c_"
-_C="$_c%}"
-
-unset has_termcaps
-[ $TERM = "urxvt" -o $TERM = "screen" -o $TERM="screen-256color" -o $TERM = "rxvt-unicode" ] && has_termcaps="true"
-T_=${has_termcaps:+$termcap[as]}
-_T=${has_termcaps:+$termcap[ae]}
-_t_q=${${has_termcaps:+q}:--}
-_t_j=${${has_termcaps:+j}:-[}
-_t_k=${${has_termcaps:+k}:-[}
-_t_l=${${has_termcaps:+l}:-]}
-_t_m=${${has_termcaps:+m}:-]}
-_t_t=${${has_termcaps:+t}:-]}
-_t_u=${${has_termcaps:+u}:-[}
-
-export PATH=$PATH:~/sbin:~/local/bin
-PATH=/sbin:/usr/sbin:$PATH
-export MANPATH=~/man:~/local/share/man:/usr/local/share/man:$MANPATH
-export INFOPATH=~/info:~/local/share/info:/usr/local/share/info:$INFOPATH
-typeset -gU MANPATH INFOPATH
-
 if [ -w $ZDOTDIR ]; then
     mkdir -p ${ZDOTDIR}/var
        HISTFILE=$ZDOTDIR/var/history.$USER.$HOST
@@ -39,10 +15,8 @@ HISTSIZE=$(( $SAVEHIST * 1.10 ))
 
 ## maximum size of the directory stack.
 DIRSTACKSIZE=20
-DIRSTACKFILE=${ZDOTDIR}/var/.zdirs
-if zstyle -T ':ganneff:config' dirpersiststore && is434;then
-    # $zdirstore is the file used to persist the stack
-    zdirstore=${ZDOTDIR}/var/.zdirstore
+DIRSTACKFILE=${ZDOTDIR}/var/.zdirstore
+if zstyle -T ':ganneff:config' dirstackhandling dirpersist dirstack; then
     dirpersistrestore
 fi
 
@@ -85,7 +59,7 @@ fi
 
 # set variable debian_chroot if running in a chroot with /etc/debian_chroot
 if [[ -z "$debian_chroot" ]] && [[ -r /etc/debian_chroot ]] ; then
-    debian_chroot="chroot: $(cat /etc/debian_chroot)"
+    debian_chroot="chroot: $(</etc/debian_chroot)"
 fi
 
 # The format of process time reports with the time builtin.