diff --git a/.zshrc b/.zshrc index 14ee2bb..20c7f8e 100644 --- a/.zshrc +++ b/.zshrc @@ -1,5 +1,8 @@ # Blake's ZSH configuration file +# Profiling (part 1) if needed (see line at bottom too) +# zmodload zsh/zprof + # Just in case export SHELL_CONFIG_DIR="${SHELL_CONFIG_DIR:-"${XDG_CONFIG_HOME:-"$HOME/.config"}/shell"}" @@ -21,7 +24,7 @@ ${SKIP_PLUGINS:-false} || { source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi - # }}")}' ' ') + # }}")}' ' $((r-2))"'} # ^^^^ syntax highlighting fix # Source zinit @@ -42,7 +45,7 @@ ${SKIP_PLUGINS:-false} || { # shellcheck disable=SC2262,SC2016 { # set turbo mode and git clone depth for all plugins - alias zinit='ice wait"!0" depth"1";zinit' + alias zinit='ice wait"0" depth"1";zinit' # Special history options zinit snippet OMZL::history.zsh @@ -207,8 +210,8 @@ export LESS_TERMCAP_so=$'\E[01;47;34m' export LESS_TERMCAP_ue=$'\E[0m' export LESS_TERMCAP_us=$'\E[01;36m' export LESS=-R -autoload -U compinit colors zcalc -compinit -d +autoload -Uz compinit colors zcalc +compinit -C colors # <<< # auto save and load working dir (allow `cd -` on start) >>> @@ -252,4 +255,7 @@ load_working_dir && cd - > /dev/null || true # Optionally source another zshrc ${SKIP_LOCAL_ZSHRC:-false} || careful_source "$SHELL_CONFIG_DIR/local/zshrc" +# Profiling part 2 +# zprof + # vim:fdm=marker:fmr=>>>,<<<:et:ft=bash:sw=3:ts=3