Skip to content

Commit 5b8406a

Browse files
Add nvm
1 parent 46c34c1 commit 5b8406a

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Brewfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ brew "htop"
2020
brew "jq"
2121
brew "neovim"
2222
brew "nmap"
23+
brew "nvm"
2324
brew "p7zip"
2425
brew "reattach-to-user-namespace"
2526
brew "ripgrep"

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ Press `prefix + I` in a tmux session to fetch and install all plugins.
7676

7777
### asdf-vm
7878

79-
Included is [asdf-vm](https://asdf-vm.com/#/core-manage-plugins), which you can use to manage multiple runtime versions of Node.js, Python, Ruby, etc.
79+
Included is [asdf-vm](https://asdf-vm.com/#/core-manage-plugins), which you can use to manage multiple runtime versions of Python, Ruby, etc.
80+
81+
### nvm
82+
83+
Included is [nvm](https://github.com/nvm-sh/nvm), which you can use to manage multiple runtime versions of Node.js.
8084

8185
### Visual Studio Code
8286

dotfiles/.zshrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,10 @@ PATH="$HOMEBREW_PREFIX/opt/findutils/libexec/gnubin:$PATH"
119119
# asdf
120120
. $HOMEBREW_PREFIX/opt/asdf/libexec/asdf.sh
121121

122+
# nvm
123+
export NVM_DIR="$HOME/.nvm"
124+
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
125+
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
126+
122127
# homebrew
123128
export PATH="/usr/local/sbin:$PATH"

0 commit comments

Comments
 (0)