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

@ -0,0 +1 @@
Subproject commit 745291dcf20686ec421935f1c3f8f3a2918dd106

View file

@ -15,11 +15,6 @@ setopt HIST_REDUCE_BLANKS
# Use NVIM
alias vim=nvim
# NVM
export NVM_DIR="$CONFIGDIR/nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Nodejs
export SKIP_PREFLIGHT_CHECK=true