Use official node module instead of loading nvm manually

This commit is contained in:
Harry Green 2020-03-11 14:04:27 +13:00 committed by Harry Green
parent 4e9e9ef165
commit 7502e6ac1b
2 changed files with 3 additions and 5 deletions

View file

@ -43,7 +43,9 @@ zstyle ':prezto:load' pmodule \
'prompt' \
'syntax-highlighting' \
'fasd' \
'autosuggestions'
'autosuggestions' \
'node'
#
# Autosuggestions
#

View file

@ -42,9 +42,5 @@ export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export NVM_DIR="$HOME/.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
# Disable command correction suggestions
unsetopt correct