Skip to content

Commit

Permalink
nvm to bashrc
Browse files Browse the repository at this point in the history
I think bash_profile is actually the right place for this, but it seems
to handle being re-invoked in a non-login shell, and this works around
microsoft/vscode-remote-release#1671
  • Loading branch information
jwatzman committed Jan 11, 2025
1 parent 288f9e9 commit 13d0375
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ then
export PATH=$PATH:"/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
fi

# nvm
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

export XTERMCMD=uxterm
export AFSHOME=/afs/andrew/usr/jwatzman
export EDITOR=vim
Expand Down
5 changes: 5 additions & 0 deletions bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

# nvm
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

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
eval "`dircolors -b`"
Expand Down

0 comments on commit 13d0375

Please sign in to comment.