Explicit is better than implicit

This commit is contained in:
Aminda Suomalainen 2024-07-28 12:37:51 +03:00
parent e54f4f1689
commit 2d26f20efd
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
3 changed files with 30 additions and 18 deletions

View File

@ -1,6 +1,6 @@
# https://github.com/Homebrew/brew # https://github.com/Homebrew/brew
if [ -d /home/linuxbrew/.linuxbrew/bin ]; then if [ -d /home/linuxbrew/.linuxbrew/bin ]; then
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi fi
# https://github.com/nvm-sh/nvm # https://github.com/nvm-sh/nvm
@ -11,5 +11,5 @@ elif [ -d /home/linuxbrew/.linuxbrew/opt/nvm ]; then
mkdir -p /home/linuxbrew/.nvm mkdir -p /home/linuxbrew/.nvm
export NVM_DIR=/home/linuxbrew/.nvm export NVM_DIR=/home/linuxbrew/.nvm
. /home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh . /home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh
. /home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm # . /home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm
fi fi

View File

@ -270,13 +270,16 @@ export RES_OPTIONS="timeout:2 attempts:2 rotate edns0 trust-ad"
# https://github.com/go-nv/goenv # https://github.com/go-nv/goenv
if [ -d ~/.goenv/bin ]; then if [ -d ~/.goenv/bin ]; then
export GOENV_ROOT="$HOME/.goenv" export GOENV_ROOT="$HOME/.goenv"
PATH="$HOME/.goenv/bin:$PATH" PATH="$GOENV_ROOT/bin:$PATH"
#goenv init > /dev/null 2>&1 eval "$(goenv init -)"
PATH="$GOROOT/bin:$PATH"
PATH="$PATH:$GOPATH/bin"
elif [ -d /home/linuxbrew/.linuxbrew/opt/goenv ]; then
export GOENV_ROOT="$/home/linuxbrew/.linuxbrew/opt/goenv"
PATH="$GOENV_ROOT/bin:$PATH"
eval "$(goenv init -)" eval "$(goenv init -)"
PATH="$GOROOT/bin:$PATH" PATH="$GOROOT/bin:$PATH"
PATH="$PATH:$GOPATH/bin" PATH="$PATH:$GOPATH/bin"
elif hash goenv 2> /dev/null; then
eval $(goenv init -)
fi fi
# https://github.com/nvm-sh/nvm # https://github.com/nvm-sh/nvm
@ -287,7 +290,7 @@ elif [ -d /home/linuxbrew/.linuxbrew/opt/nvm ]; then
mkdir -p /home/linuxbrew/.nvm mkdir -p /home/linuxbrew/.nvm
export NVM_DIR=/home/linuxbrew/.nvm export NVM_DIR=/home/linuxbrew/.nvm
. /home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh . /home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh
. /home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm #. /home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm
fi fi
# https://github.com/rbenv/rbenv # https://github.com/rbenv/rbenv
@ -296,7 +299,8 @@ if [ -d ~/.rbenv/bin ]; then
eval "$(rbenv init -)" eval "$(rbenv init -)"
# Remember! And verify it before running! # Remember! And verify it before running!
# git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build # git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
elif hash rbenv 2> /dev/null; then elif [ -d /home/linuxbrew/.linuxbrew/opt/rbenv/bin ]; then
PATH="/home/linuxbrew/.linuxbrew/opt/rbenv/bin:/home/linuxbrew/.linuxbrew/opt/rbenv/bin/shims:$PATH"
eval "$(rbenv init -)" eval "$(rbenv init -)"
fi fi
@ -312,7 +316,8 @@ if [ -d ~/.pyenv/bin ]; then
# Worth considering (and verifying before running) # Worth considering (and verifying before running)
# git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv # git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
# git clone https://github.com/pyenv/pyenv-virtualenvwrapper.git $(pyenv root)/plugins/pyenv-virtualenvwrapper # git clone https://github.com/pyenv/pyenv-virtualenvwrapper.git $(pyenv root)/plugins/pyenv-virtualenvwrapper
elif hash pyenv 2> /dev/null; then elif [ -d /home/linuxbrew/.linuxbrew/opt/pyenv/bin ]; then
PATH="/home/linuxbrew/.linuxbrew/opt/pyenv/bin:/home/linuxbrew/.linuxbrew/opt/pyenv/shims:$PATH"
eval "$(pyenv init -)" eval "$(pyenv init -)"
fi fi
@ -322,7 +327,8 @@ if [ -d ~/.nodenv/bin ]; then
eval "$(nodenv init -)" eval "$(nodenv init -)"
# Remember! And verify it before running! # Remember! And verify it before running!
# git clone https://github.com/nodenv/node-build.git "$(nodenv root)"/plugins/node-build # git clone https://github.com/nodenv/node-build.git "$(nodenv root)"/plugins/node-build
elif hash nodenv 2> /dev/null; then elif [ -d /home/linuxbrew/.linuxbrew/opt/nodenv/bin ]; then
PATH="/home/linuxbrew/.linuxbrew/opt/nodenv/bin:$PATH"
eval "$(nodenv init -)" eval "$(nodenv init -)"
fi fi

View File

@ -224,13 +224,16 @@ export RES_OPTIONS="timeout:2 attempts:2 rotate edns0 trust-ad"
# https://github.com/go-nv/goenv # https://github.com/go-nv/goenv
if [ -d ~/.goenv/bin ]; then if [ -d ~/.goenv/bin ]; then
export GOENV_ROOT="$HOME/.goenv" export GOENV_ROOT="$HOME/.goenv"
PATH="$HOME/.goenv/bin:$PATH" PATH="$GOENV_ROOT/bin:$PATH"
#goenv init > /dev/null 2>&1 eval "$(goenv init -)"
PATH="$GOROOT/bin:$PATH"
PATH="$PATH:$GOPATH/bin"
elif [ -d /home/linuxbrew/.linuxbrew/opt/goenv ]; then
export GOENV_ROOT="$/home/linuxbrew/.linuxbrew/opt/goenv"
PATH="$GOENV_ROOT/bin:$PATH"
eval "$(goenv init -)" eval "$(goenv init -)"
PATH="$GOROOT/bin:$PATH" PATH="$GOROOT/bin:$PATH"
PATH="$PATH:$GOPATH/bin" PATH="$PATH:$GOPATH/bin"
elif hash goenv 2> /dev/null; then
eval $(goenv init -)
fi fi
# https://github.com/nvm-sh/nvm # https://github.com/nvm-sh/nvm
@ -241,7 +244,7 @@ elif [ -d /home/linuxbrew/.linuxbrew/opt/nvm ]; then
mkdir -p /home/linuxbrew/.nvm mkdir -p /home/linuxbrew/.nvm
export NVM_DIR=/home/linuxbrew/.nvm export NVM_DIR=/home/linuxbrew/.nvm
. /home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh . /home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh
. /home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm #. /home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm
fi fi
# https://github.com/rbenv/rbenv # https://github.com/rbenv/rbenv
@ -250,7 +253,8 @@ if [ -d ~/.rbenv/bin ]; then
eval "$(rbenv init -)" eval "$(rbenv init -)"
# Remember! And verify it before running! # Remember! And verify it before running!
# git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build # git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
elif hash rbenv 2> /dev/null; then elif [ -d /home/linuxbrew/.linuxbrew/opt/rbenv/bin ]; then
PATH="/home/linuxbrew/.linuxbrew/opt/rbenv/bin:/home/linuxbrew/.linuxbrew/opt/rbenv/bin/shims:$PATH"
eval "$(rbenv init -)" eval "$(rbenv init -)"
fi fi
@ -266,7 +270,8 @@ if [ -d ~/.pyenv/bin ]; then
# Worth considering (and verifying before running) # Worth considering (and verifying before running)
# git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv # git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
# git clone https://github.com/pyenv/pyenv-virtualenvwrapper.git $(pyenv root)/plugins/pyenv-virtualenvwrapper # git clone https://github.com/pyenv/pyenv-virtualenvwrapper.git $(pyenv root)/plugins/pyenv-virtualenvwrapper
elif hash pyenv 2> /dev/null; then elif [ -d /home/linuxbrew/.linuxbrew/opt/pyenv/bin ]; then
PATH="/home/linuxbrew/.linuxbrew/opt/pyenv/bin:/home/linuxbrew/.linuxbrew/opt/pyenv/shims:$PATH"
eval "$(pyenv init -)" eval "$(pyenv init -)"
fi fi
@ -276,7 +281,8 @@ if [ -d ~/.nodenv/bin ]; then
eval "$(nodenv init -)" eval "$(nodenv init -)"
# Remember! And verify it before running! # Remember! And verify it before running!
# git clone https://github.com/nodenv/node-build.git "$(nodenv root)"/plugins/node-build # git clone https://github.com/nodenv/node-build.git "$(nodenv root)"/plugins/node-build
elif hash nodenv 2> /dev/null; then elif [ -d /home/linuxbrew/.linuxbrew/opt/nodenv/bin ]; then
PATH="/home/linuxbrew/.linuxbrew/opt/nodenv/bin:$PATH"
eval "$(nodenv init -)" eval "$(nodenv init -)"
fi fi