mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-10 02:29:22 +01:00
fix 99-brew.sh in profile.d as well
This commit is contained in:
parent
4eedcf49a7
commit
e54f4f1689
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user