update check for nvm to allow for functions

This commit is contained in:
Nathan Gilbert 2021-01-27 17:59:31 -07:00 committed by Justin Hileman
parent dcb5c9ea14
commit 626bd39b00

View File

@ -902,7 +902,7 @@ function __bobthefish_prompt_node -S -d 'Display current node version'
set -l node_manager
set -l node_manager_dir
if type -fq nvm
if type -q nvm
set node_manager 'nvm'
set node_manager_dir $NVM_DIR
else if type -fq fnm