Use zsh-nvm to reduce shell startup time by 2x (0.2s > 0.09s)
This commit is contained in:
parent
00f1f9a17d
commit
818089e853
5 changed files with 10 additions and 5 deletions
|
@ -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
|
||||
|
|
1
.config/zsh/plugins/zsh-nvm
Submodule
1
.config/zsh/plugins/zsh-nvm
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 745291dcf20686ec421935f1c3f8f3a2918dd106
|
|
@ -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
|
||||
|
||||
|
|
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -10,3 +10,6 @@
|
|||
[submodule ".config/zsh/plugins/catppuccin-zsh-syntax-highlighting"]
|
||||
path = .config/zsh/plugins/catppuccin-zsh-syntax-highlighting
|
||||
url = https://github.com/catppuccin/zsh-syntax-highlighting.git
|
||||
[submodule ".config/zsh/plugins/zsh-nvm"]
|
||||
path = .config/zsh/plugins/zsh-nvm
|
||||
url = https://github.com/lukechilds/zsh-nvm.git
|
||||
|
|
1
.zshrc
1
.zshrc
|
@ -15,3 +15,4 @@ source "$CONFIGDIR/zsh/shared.sh"
|
|||
|
||||
# Load plugin related items
|
||||
source "$CONFIGDIR/zsh/plugins.sh"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue