Use zsh-nvm to reduce shell startup time by 2x (0.2s > 0.09s)

This commit is contained in:
pfych 2025-07-21 08:45:38 +10:00 committed by Violet Heague
parent 00f1f9a17d
commit 818089e853
5 changed files with 10 additions and 5 deletions

View file

@ -4,12 +4,17 @@ source "$CONFIGDIR/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.z
source "$CONFIGDIR/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"
# Autocomplete
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE="20"
ZSH_AUTOSUGGEST_USE_ASYNC=true
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
# FZF
source <(fzf --zsh)
# NVM
export NVM_LAZY_LOAD=true
source "$CONFIGDIR/zsh/plugins/zsh-nvm/zsh-nvm.plugin.zsh"
# Prompt
configPrompt() {
case $(uname -n) in