Set up nvm in bashrc instead of bash_profile
This commit is contained in:
parent
94567d89fa
commit
6662ddd9fb
@ -2,18 +2,6 @@
|
||||
# $HOME/.bash_profile
|
||||
#
|
||||
|
||||
if [ -f /usr/share/nvm/init-nvm.sh ];
|
||||
then
|
||||
source /usr/share/nvm/init-nvm.sh
|
||||
fi
|
||||
|
||||
if [ -d "$HOME/.nvm" ];
|
||||
then
|
||||
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
|
||||
fi
|
||||
|
||||
[[ -f "$HOME/.bashrc" ]] && source $HOME/.bashrc
|
||||
|
||||
[[ -f "$HOME/.bash_local" ]] && source "$HOME/.bash_local"
|
||||
|
12
bash/.bashrc
12
bash/.bashrc
@ -15,6 +15,18 @@ fi
|
||||
|
||||
alias edit="$(which emacsclient) "
|
||||
|
||||
if [ -f /usr/share/nvm/init-nvm.sh ];
|
||||
then
|
||||
source /usr/share/nvm/init-nvm.sh
|
||||
fi
|
||||
|
||||
if [ -d "$HOME/.nvm" ];
|
||||
then
|
||||
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
|
||||
fi
|
||||
|
||||
if [ -f ~/.bashrc.local ];
|
||||
then
|
||||
source ~/.bashrc.local
|
||||
|
Loading…
Reference in New Issue
Block a user