Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions nvm.fish
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ function nvm-fast
set new_path $brigand_nvm_fish_path/$matched_version/bin $new_path
end
set -g fish_user_paths $new_path

# Check if we're in startup
if not status --print-stack-trace | grep 'called during startup' >/dev/null
if test $matched_version = 'system'
echo "Now using system version of node:" (node -v 2>/dev/null)
else
echo "Now using node $matched_version"
end
end
end
else
bash -c "source ~/.nvm/nvm.sh --no-use; nvm $argv"
Expand Down