mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 04:29:29 +01:00
{bash,zsh}rc & profile.d: fix if nvm condition
This commit is contained in:
parent
15a8d5f9eb
commit
c4b20f481d
@ -2,3 +2,9 @@
|
||||
if [ -d /home/linuxbrew/.linuxbrew/bin ]; then
|
||||
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
||||
fi
|
||||
|
||||
if [ -d /home/linuxbrew/.linuxbrew/opt/nvm ]; then
|
||||
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
|
||||
fi
|
||||
|
@ -283,7 +283,7 @@ fi
|
||||
if [ -d ~/.nvm ]; then
|
||||
. ~/.nvm/nvm.sh
|
||||
. ~/.nvm/bash_completion
|
||||
elif [ -f /home/linuxbrew/.linuxbrew/bin/nvm ]; then
|
||||
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
|
||||
|
2
rc/zshrc
2
rc/zshrc
@ -237,7 +237,7 @@ fi
|
||||
if [ -d ~/.nvm ]; then
|
||||
. ~/.nvm/nvm.sh
|
||||
. ~/.nvm/bash_completion
|
||||
elif [ -d /home/linuxbrew/.linuxbrew/bin/nvm ]; then
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user