Skip to content

Commit 9201ff9

Browse files
committed
.bashrc.inb7: Add $HOME/.nvm setup (if present)
NVM is the NodeJS installation/version manager. This is unchanged from the code that the NVM installer[1] adds to ~/.bashrc. It always sets $NVM_DIR even if it's not present, but we just leave that because it's not annoying enough that we want to use a non-standard version. The installer script has a bug: it assumes that the user's default remote name is `origin` and fails if it is not. PR #3654 [2] has been filed to fix this (it just adds `-o origin` to the clone command), but is stalled for unknown reasons. [1]: https://nodejs.org/en/download [2]: nvm-sh/nvm#3654
1 parent 8d9352a commit 9201ff9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dot/bashrc.inb7

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,13 @@ pz() {
458458
[[ -r ~/co/public/gh/cynic-net/pactivate/pae ]] \
459459
&& . ~/co/public/gh/cynic-net/pactivate/pae
460460

461+
####################################################################
462+
# `nvm` is the NodeJS install tool
463+
464+
export NVM_DIR="$HOME/.nvm"
465+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
466+
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
467+
461468
######################################################################
462469
# Haskell Configuration
463470

0 commit comments

Comments
 (0)