Skip to content

Commit

Permalink
add nvm shellenv to dotfiles
Browse files Browse the repository at this point in the history
This is usually only for work, but let's just do it here.

I might do the same with chruby and similar things.
  • Loading branch information
ymendel committed Sep 3, 2024
1 parent 3158d29 commit 6469934
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions node/shellenv.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if $(brew list nvm >/dev/null 2>&1)
then
export NVM_DIR="$HOME/.nvm"
[ -s "$(brew --prefix nvm)/nvm.sh" ] && . "$(brew --prefix nvm)/nvm.sh"
[ -s "$(brew --prefix nvm)/etc/bash_completion.d/nvm" ] && . "$(brew --prefix nvm)/etc/bash_completion.d/nvm"
fi

0 comments on commit 6469934

Please sign in to comment.