Mercurial > dotfiles
diff dot_zshrc @ 659:e1a7072165ac
Prompt loading speedups for zsh
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sat, 24 Sep 2022 16:50:20 +0000 |
parents | 77f3f615e4bf |
children | 407d461cd377 |
line wrap: on
line diff
--- a/dot_zshrc Sat Sep 24 16:02:02 2022 +0000 +++ b/dot_zshrc Sat Sep 24 16:50:20 2022 +0000 @@ -47,19 +47,17 @@ esac } -autoload -Uz vcs_info +autoload -Uz vcs_info add-zsh-hook zstyle ':vcs_info:*' enable git hg zstyle ':vcs_info:*' actionformats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' zstyle ':vcs_info:*' formats '%F{4}%s%F{5}%F{3} @ %F{2}%b%f' zstyle ':vcs_info:hg*:*' use-simple true -precmd () { vcs_info } +add-zsh-hook precmd vcs_info zsh-defer -c 'RPROMPT="\${vcs_info_msg_0_} \${vim_mode}"' -zmodload -i zsh/complist - bindkey -v zmodload zsh/complist @@ -80,7 +78,7 @@ export LESS_TERMCAP_us=$(printf "\e[1;32m") export CLICOLOR=1 -eval "$(dircolors --sh ~/.lscolors)" +source ~/.dircolors.zsh # Options setopt monitor @@ -288,7 +286,12 @@ ZSH_AUTOSUGGEST_STRATEGY=histdb_top_here -autoload -U compinit && compinit +autoload -U compinit + +for dump in ~/.zcompdump(N.mh+24); do + compinit +done +compinit -C if [ ${TMUX} ]; then unset zle_bracketed_paste