mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 04:29:29 +01:00
{bash,zsh}rc#nvm: ignore the manual and go with what is known to work
This commit is contained in:
parent
838b486251
commit
4eedcf49a7
@ -281,13 +281,13 @@ fi
|
||||
|
||||
# https://github.com/nvm-sh/nvm
|
||||
if [ -d ~/.nvm ]; then
|
||||
. ~/.nvm/nvm.sh > /dev/null 2>&1
|
||||
. ~/.nvm/bash_completion > /dev/null 2>&1
|
||||
. ~/.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 >/dev/null 2>&1" # This loads nvm
|
||||
[ -s "/home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm >/dev/null 2>&1" # This loads nvm bash_completion
|
||||
. /home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh
|
||||
. /home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm
|
||||
fi
|
||||
|
||||
# https://github.com/rbenv/rbenv
|
||||
|
4
rc/zshrc
4
rc/zshrc
@ -240,8 +240,8 @@ if [ -d ~/.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 >/dev/null 2>&1" # This loads nvm
|
||||
[ -s "/home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm >/dev/null 2>&1" # This loads nvm bash_completion
|
||||
. /home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh
|
||||
. /home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm
|
||||
fi
|
||||
|
||||
# https://github.com/rbenv/rbenv
|
||||
|
Loading…
Reference in New Issue
Block a user