Skip to content

Instantly share code, notes, and snippets.

@aloknnikhil
Created April 10, 2020 16:42
Show Gist options
  • Save aloknnikhil/00c23fa4db1b9b20918dfb4775f0c4c3 to your computer and use it in GitHub Desktop.
Save aloknnikhil/00c23fa4db1b9b20918dfb4775f0c4c3 to your computer and use it in GitHub Desktop.
FastLoad NVM on ZSH startup
#!/bin/zsh
# ~/loadnvm.sh
#delete the aliases
unalias nvm
unalias npm
unalias node
#(this is the loader code nvm put in my .bashrc)
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment