add check NVM directory

This commit is contained in:
Alexander Popov 2022-06-25 20:30:27 +03:00
parent 3ce6203ad2
commit cf60d6de45

View File

@ -12,8 +12,10 @@ alias ..='cd ..'
alias tardir='tar -czf "../${PWD##*/}.tar.gz"' # tar.gz current dir alias tardir='tar -czf "../${PWD##*/}.tar.gz"' # tar.gz current dir
alias pacman-orphaned='pacman -Rns $(pacman -Qtdq)' # delete orphaned packages (Arch Linux) alias pacman-orphaned='pacman -Rns $(pacman -Qtdq)' # delete orphaned packages (Arch Linux)
# NVM # NVM (Node.js version manager)
if [ -d "$HOME/.nvm" ]; then
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
export PATH="$PATH:node_modules/.bin:$HOME/.bin" export PATH="$PATH:node_modules/.bin:$HOME/.bin"
fi