From 166cb1db0249b3f305d882a9ea90873c4db72ea5 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Sun, 25 Jul 2021 18:38:57 -0700 Subject: [PATCH] Use a command instead of type for npm check --- assets/default/fish/init/paths.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/default/fish/init/paths.fish b/assets/default/fish/init/paths.fish index 217e9f6..c2beaad 100644 --- a/assets/default/fish/init/paths.fish +++ b/assets/default/fish/init/paths.fish @@ -41,7 +41,7 @@ if [ $det_os = "mac" ] end # NPM paths -if type -q npm +if command -q npm set npm_path "$HOME/.npm/bin" if [ ! -d "$npm_path" ] # It's more robust to use the subshell, but far slower