fix 99-brew.sh in profile.d as well

This commit is contained in:
Aminda Suomalainen 2024-07-28 11:52:51 +03:00
parent 4eedcf49a7
commit e54f4f1689
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -3,8 +3,13 @@ if [ -d /home/linuxbrew/.linuxbrew/bin ]; then
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
fi fi
if [ -d /home/linuxbrew/.linuxbrew/opt/nvm ]; then # https://github.com/nvm-sh/nvm
if [ -d ~/.nvm ]; then
. ~/.nvm/nvm.sh
. ~/.nvm/bash_completion
elif [ -d /home/linuxbrew/.linuxbrew/opt/nvm ]; then
mkdir -p /home/linuxbrew/.nvm
export NVM_DIR=/home/linuxbrew/.nvm export NVM_DIR=/home/linuxbrew/.nvm
[ -s "/home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh" ] && \. "/home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh" # This loads nvm . /home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh
[ -s "/home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion . /home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm
fi fi