M .zsh/.zshrc
M .zsh/zshenv.home
M .zsh/zshenv.local.sample
[[ -f ${ZDOTDIR}/.zshlate ]] && source ${ZDOTDIR}/.zshlate || true
unfunction debug
unfunction maybe_compile
+
+if zstyle -t ':ganneff:config' starttime true; then
+ end_time=$(( $(( $(date +%s) * 1000000000 )) + $(date +%N) ))
+ duration=$(( $end_time - $_start_time ))
+ echo "ZSH startup took roughly $(( $duration / 1000000.0 ))ms"
+ unset end_time; unset duration
+fi
+unset _start_time
## set options to turn on tracing and expansion of commands contained in the prompt
#setopt xtrace prompt_subst
+# Store "starttime" of shell in case user wants to see how long loading took
+_start_time=$(( $(( $(date +%s) * 1000000000 )) + $(date +%N) ))
+# Variable is removed on end of shell load
+
# Don't do anything more in here, do everything inside
# $ZDOTDIR!
## Want to have a fortune at zsh start?
# zstyle ':ganneff:config' fortune true
+## Want to see how long it (roughly) took to load?
+# zstyle ':ganneff:config' starttime false
+
########################################################################
### Prompt setup ###
## use vcs_info in prompt