mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19:22 +01:00
more shell crimes while not understanding that *env only triggers once there is at least one install done
This commit is contained in:
parent
7c9273a865
commit
8e342a54e5
@ -7,40 +7,31 @@
|
|||||||
# approach.
|
# approach.
|
||||||
|
|
||||||
# https://github.com/go-nv/goenv
|
# https://github.com/go-nv/goenv
|
||||||
if [ -d ~/.goenv/bin ]; then
|
if [ -f /home/linuxbrew/.linuxbrew/opt/goenv/bin/goenv ]; then
|
||||||
export GOENV_ROOT="$HOME/.goenv"
|
eval "$(/home/linuxbrew/.linuxbrew/opt/goenv/bin/goenv init -)"
|
||||||
PATH="$GOENV_ROOT/bin:$PATH"
|
PATH=/home/linuxbrew/.linuxbrew/opt/goenv/bin/shims:$PATH
|
||||||
eval "$(goenv init -)"
|
elif [ -f ~/.goenv/bin/goenv ]; then
|
||||||
PATH="$GOROOT/bin:$PATH"
|
eval "$(~/.goenv/bin/goenv init -)"
|
||||||
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 -)"
|
|
||||||
PATH="$GOROOT/bin:$PATH"
|
|
||||||
PATH="$PATH:$GOPATH/bin"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/nvm-sh/nvm
|
# https://github.com/nvm-sh/nvm
|
||||||
if [ -d ~/.nvm ]; then
|
if [ -d /home/linuxbrew/.linuxbrew/opt/nvm ]; then
|
||||||
. ~/.nvm/nvm.sh
|
|
||||||
. ~/.nvm/bash_completion
|
|
||||||
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
|
elif [ -d ~/.nvm ]; then
|
||||||
|
. ~/.nvm/nvm.sh
|
||||||
|
. ~/.nvm/bash_completion
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/rbenv/rbenv
|
# https://github.com/rbenv/rbenv
|
||||||
if [ -d ~/.rbenv/bin ]; then
|
if [ -f /home/linuxbrew/.linuxbrew/opt/rbenv/bin/rbenv ]; then
|
||||||
PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"
|
eval "$(/home/linuxbrew/.linuxbrew/opt/rbenv/bin/rbenv init -)"
|
||||||
eval "$(rbenv init -)"
|
PATH=/home/linuxbrew/.linuxbrew/opt/rbenv/bin/shims:$PATH
|
||||||
|
elif [ -f ~/.rbenv/bin/rbenv ]; then
|
||||||
|
eval "$(~/.rbenv/bin/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 [ -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 -)"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add RubyGems to PATH
|
# Add RubyGems to PATH
|
||||||
@ -49,26 +40,24 @@ if hash ruby 2> /dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/pyenv/pyenv
|
# https://github.com/pyenv/pyenv
|
||||||
if [ -d ~/.pyenv/bin ]; then
|
if [ -f /home/linuxbrew/.linuxbrew/opt/pyenv/bin/pyenv ]; then
|
||||||
PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
|
eval "$(/home/linuxbrew/.linuxbrew/opt/pyenv/bin/pyenv init -)"
|
||||||
eval "$(pyenv init -)"
|
PATH=/home/linuxbrew/.linuxbrew/opt/pyenv/bin/shims:$PATH
|
||||||
|
elif [ -d ~/.pyenv/bin ]; then
|
||||||
|
eval "$(~/.pyenv/bin/pyenv init -)"
|
||||||
# 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 [ -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 -)"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/nodenv/nodenv
|
# https://github.com/nodenv/nodenv
|
||||||
if [ -d ~/.nodenv/bin ]; then
|
if [ -f /home/linuxbrew/.linuxbrew/opt/nodenv/bin/nodenv ]; then
|
||||||
PATH="$HOME/.nodenv/bin:$PATH"
|
eval "$(/home/linuxbrew/.linuxbrew/opt/nodenv/bin/nodenv init -)"
|
||||||
eval "$(nodenv init -)"
|
PATH=/home/linuxbrew/.linuxbrew/opt/nodenv/bin/shims:$PATH
|
||||||
|
elif [ -d ~/.nodenv/bin/nodenv ]; then
|
||||||
|
eval "$(~/.nodenv/bin/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 [ -d /home/linuxbrew/.linuxbrew/opt/nodenv/bin ]; then
|
|
||||||
PATH="/home/linuxbrew/.linuxbrew/opt/nodenv/bin:$PATH"
|
|
||||||
eval "$(nodenv init -)"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/Homebrew/brew
|
# https://github.com/Homebrew/brew
|
||||||
|
59
rc/bashrc
59
rc/bashrc
@ -268,40 +268,31 @@ export LOCALDOMAIN=.
|
|||||||
export RES_OPTIONS="timeout:2 attempts:2 rotate edns0 trust-ad"
|
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 [ -f /home/linuxbrew/.linuxbrew/opt/goenv/bin/goenv ]; then
|
||||||
export GOENV_ROOT="$HOME/.goenv"
|
eval "$(/home/linuxbrew/.linuxbrew/opt/goenv/bin/goenv init -)"
|
||||||
PATH="$GOENV_ROOT/bin:$PATH"
|
PATH=/home/linuxbrew/.linuxbrew/opt/goenv/bin/shims:$PATH
|
||||||
eval "$(goenv init -)"
|
elif [ -f ~/.goenv/bin/goenv ]; then
|
||||||
PATH="$GOROOT/bin:$PATH"
|
eval "$(~/.goenv/bin/goenv init -)"
|
||||||
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 -)"
|
|
||||||
PATH="$GOROOT/bin:$PATH"
|
|
||||||
PATH="$PATH:$GOPATH/bin"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/nvm-sh/nvm
|
# https://github.com/nvm-sh/nvm
|
||||||
if [ -d ~/.nvm ]; then
|
if [ -d /home/linuxbrew/.linuxbrew/opt/nvm ]; then
|
||||||
. ~/.nvm/nvm.sh
|
|
||||||
. ~/.nvm/bash_completion
|
|
||||||
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
|
elif [ -d ~/.nvm ]; then
|
||||||
|
. ~/.nvm/nvm.sh
|
||||||
|
. ~/.nvm/bash_completion
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/rbenv/rbenv
|
# https://github.com/rbenv/rbenv
|
||||||
if [ -d ~/.rbenv/bin ]; then
|
if [ -f /home/linuxbrew/.linuxbrew/opt/rbenv/bin/rbenv ]; then
|
||||||
PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"
|
eval "$(/home/linuxbrew/.linuxbrew/opt/rbenv/bin/rbenv init -)"
|
||||||
eval "$(rbenv init -)"
|
PATH=/home/linuxbrew/.linuxbrew/opt/rbenv/bin/shims:$PATH
|
||||||
|
elif [ -f ~/.rbenv/bin/rbenv ]; then
|
||||||
|
eval "$(~/.rbenv/bin/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 [ -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 -)"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add RubyGems to PATH
|
# Add RubyGems to PATH
|
||||||
@ -310,26 +301,24 @@ if hash ruby 2> /dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/pyenv/pyenv
|
# https://github.com/pyenv/pyenv
|
||||||
if [ -d ~/.pyenv/bin ]; then
|
if [ -f /home/linuxbrew/.linuxbrew/opt/pyenv/bin/pyenv ]; then
|
||||||
PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
|
eval "$(/home/linuxbrew/.linuxbrew/opt/pyenv/bin/pyenv init -)"
|
||||||
eval "$(pyenv init -)"
|
PATH=/home/linuxbrew/.linuxbrew/opt/pyenv/bin/shims:$PATH
|
||||||
|
elif [ -d ~/.pyenv/bin ]; then
|
||||||
|
eval "$(~/.pyenv/bin/pyenv init -)"
|
||||||
# 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 [ -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 -)"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/nodenv/nodenv
|
# https://github.com/nodenv/nodenv
|
||||||
if [ -d ~/.nodenv/bin ]; then
|
if [ -f /home/linuxbrew/.linuxbrew/opt/nodenv/bin/nodenv ]; then
|
||||||
PATH="$HOME/.nodenv/bin:$PATH"
|
eval "$(/home/linuxbrew/.linuxbrew/opt/nodenv/bin/nodenv init -)"
|
||||||
eval "$(nodenv init -)"
|
PATH=/home/linuxbrew/.linuxbrew/opt/nodenv/bin/shims:$PATH
|
||||||
|
elif [ -d ~/.nodenv/bin/nodenv ]; then
|
||||||
|
eval "$(~/.nodenv/bin/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 [ -d /home/linuxbrew/.linuxbrew/opt/nodenv/bin ]; then
|
|
||||||
PATH="/home/linuxbrew/.linuxbrew/opt/nodenv/bin:$PATH"
|
|
||||||
eval "$(nodenv init -)"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/Homebrew/brew
|
# https://github.com/Homebrew/brew
|
||||||
|
59
rc/zshrc
59
rc/zshrc
@ -222,40 +222,31 @@ export LOCALDOMAIN=.
|
|||||||
export RES_OPTIONS="timeout:2 attempts:2 rotate edns0 trust-ad"
|
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 [ -f /home/linuxbrew/.linuxbrew/opt/goenv/bin/goenv ]; then
|
||||||
export GOENV_ROOT="$HOME/.goenv"
|
eval "$(/home/linuxbrew/.linuxbrew/opt/goenv/bin/goenv init -)"
|
||||||
PATH="$GOENV_ROOT/bin:$PATH"
|
PATH=/home/linuxbrew/.linuxbrew/opt/goenv/bin/shims:$PATH
|
||||||
eval "$(goenv init -)"
|
elif [ -f ~/.goenv/bin/goenv ]; then
|
||||||
PATH="$GOROOT/bin:$PATH"
|
eval "$(~/.goenv/bin/goenv init -)"
|
||||||
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 -)"
|
|
||||||
PATH="$GOROOT/bin:$PATH"
|
|
||||||
PATH="$PATH:$GOPATH/bin"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/nvm-sh/nvm
|
# https://github.com/nvm-sh/nvm
|
||||||
if [ -d ~/.nvm ]; then
|
if [ -d /home/linuxbrew/.linuxbrew/opt/nvm ]; then
|
||||||
. ~/.nvm/nvm.sh
|
|
||||||
. ~/.nvm/bash_completion
|
|
||||||
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
|
elif [ -d ~/.nvm ]; then
|
||||||
|
. ~/.nvm/nvm.sh
|
||||||
|
. ~/.nvm/bash_completion
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/rbenv/rbenv
|
# https://github.com/rbenv/rbenv
|
||||||
if [ -d ~/.rbenv/bin ]; then
|
if [ -f /home/linuxbrew/.linuxbrew/opt/rbenv/bin/rbenv ]; then
|
||||||
PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"
|
eval "$(/home/linuxbrew/.linuxbrew/opt/rbenv/bin/rbenv init -)"
|
||||||
eval "$(rbenv init -)"
|
PATH=/home/linuxbrew/.linuxbrew/opt/rbenv/bin/shims:$PATH
|
||||||
|
elif [ -f ~/.rbenv/bin/rbenv ]; then
|
||||||
|
eval "$(~/.rbenv/bin/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 [ -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 -)"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add RubyGems to PATH
|
# Add RubyGems to PATH
|
||||||
@ -264,26 +255,24 @@ if hash ruby 2> /dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/pyenv/pyenv
|
# https://github.com/pyenv/pyenv
|
||||||
if [ -d ~/.pyenv/bin ]; then
|
if [ -f /home/linuxbrew/.linuxbrew/opt/pyenv/bin/pyenv ]; then
|
||||||
PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
|
eval "$(/home/linuxbrew/.linuxbrew/opt/pyenv/bin/pyenv init -)"
|
||||||
eval "$(pyenv init -)"
|
PATH=/home/linuxbrew/.linuxbrew/opt/pyenv/bin/shims:$PATH
|
||||||
|
elif [ -d ~/.pyenv/bin ]; then
|
||||||
|
eval "$(~/.pyenv/bin/pyenv init -)"
|
||||||
# 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 [ -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 -)"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/nodenv/nodenv
|
# https://github.com/nodenv/nodenv
|
||||||
if [ -d ~/.nodenv/bin ]; then
|
if [ -f /home/linuxbrew/.linuxbrew/opt/nodenv/bin/nodenv ]; then
|
||||||
PATH="$HOME/.nodenv/bin:$PATH"
|
eval "$(/home/linuxbrew/.linuxbrew/opt/nodenv/bin/nodenv init -)"
|
||||||
eval "$(nodenv init -)"
|
PATH=/home/linuxbrew/.linuxbrew/opt/nodenv/bin/shims:$PATH
|
||||||
|
elif [ -d ~/.nodenv/bin/nodenv ]; then
|
||||||
|
eval "$(~/.nodenv/bin/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 [ -d /home/linuxbrew/.linuxbrew/opt/nodenv/bin ]; then
|
|
||||||
PATH="/home/linuxbrew/.linuxbrew/opt/nodenv/bin:$PATH"
|
|
||||||
eval "$(nodenv init -)"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/Homebrew/brew
|
# https://github.com/Homebrew/brew
|
||||||
|
Loading…
Reference in New Issue
Block a user