diff options
author | zachir <zachir@librem.one> | 2025-07-19 22:43:50 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2025-07-19 22:44:22 -0500 |
commit | 1e976efb21acb4a4e1046dd97e89307bba5e6baf (patch) | |
tree | 65434ca986889ae8046be54412a4ced8f518522b /zsh | |
parent | 3d3d9d5bdffcad1f32b99246591b9a03c4efe2ef (diff) |
Add optimization to zsh loading
It requires using ZDOTDIR again
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.zshenv (renamed from zsh/zshenv) | 0 | ||||
-rw-r--r-- | zsh/.zshrc (renamed from zsh/zshrc) | 10 |
2 files changed, 7 insertions, 3 deletions
@@ -68,7 +68,7 @@ zle -N zle-line-init zle -N zle-keymap-select export KEYTIMEOUT=1 -fpath+="$XDG_CONFIG_HOME/zsh/zfunc" +#fpath+="$XDG_CONFIG_HOME/zsh/zfunc" if [ -n "$ZPLUG_INSTALLED" ]; then # zsh history substring search @@ -88,8 +88,12 @@ if [ -n "$ZPLUG_INSTALLED" ]; then zplug load fi -autoload -Uz compinit -compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION" +autoload -Uz compinit +if [[ -n ${ZDOTDIR}/.zcompdump(#qN.mh+24) ]]; then + compinit +else + compinit -C; +fi; zstyle ':completion:*' hosts off |