![]() # FASTER WAY TO CONFIGURE NVM ON STARTUP - OTHERWISE IT'S REALLY SLOW # Add the following lines before all other OH MY ZSH config "$NVM_DIR/bash_completion" # This loads nvm bash_completion nvmrc file itself and uses the default version if not found. ![]() I found any easy way to fix: simply call nvm use without params since it already handles the logic of looking for an. I load nvm in a different way that's faster, but it means nvm_find_nvmrc is not available so solution wasn't working for me. "/opt/homebrew/opt/nvm/nvm.sh" nvm install'Įlif then # arm and node < v16 install 圆4 node using rosettaĪrch -x86_64 zsh -c '. # arm and node >= v16 install native node This can be extended to work with Starship (even on Git Bash for Windows not WSL) as well using the starship_precmd_user_func set_win_title() " | sort -VC then For example, if /home/user1/a/b contains /home/user1/a. nvmrc file in the current directory but there is one in the parent sub-directory. nvmrcĮxport PROMPT_COMMAND="$PROMPT_COMMAND enter_directory"įollowing suggestion, the script below will not change node back to the default version if there's no. # version when entering a directory without. # Run 'nvm use' automatically every time there's Excellent answer from just extended it so it can revert to the default version when leaving a directory with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |