From 1ca4bb1cfa0e2f0613072af15ed8649c1e5e04e0 Mon Sep 17 00:00:00 2001 From: Nathan Gilbert Date: Wed, 27 Jan 2021 17:59:31 -0700 Subject: [PATCH] update check for nvm to allow for functions --- functions/fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index 94bd1a5..02bfe97 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -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