mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-24 20:19:40 +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)
|
||||
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
|
||||
[ -s "/home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh" ] && \. "/home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh" # This loads nvm
|
||||
[ -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/nvm.sh
|
||||
. /home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user