From 3590e4d11fca498d90ed33c8d93d77965e05c58b Mon Sep 17 00:00:00 2001 From: dimti Date: Wed, 23 Oct 2024 19:05:20 +0300 Subject: [PATCH] + emergency nvm scripts (corrected for a normal handed install) --- .bashrc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.bashrc b/.bashrc index 4c17adf..494a451 100644 --- a/.bashrc +++ b/.bashrc @@ -79,10 +79,9 @@ eval "$(starship init bash)" export LC_ALL=en_US.UTF-8 export LANG=ru_RU.UTF-8 -[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm" -test -d $NVM_DIR && source /usr/share/nvm/nvm.sh -test -d $NVM_DIR && source /usr/share/nvm/bash_completion -test -d $NVM_DIR && source /usr/share/nvm/install-nvm-exec +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 # auto into tmux session if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then