Swap in chruby for rbenv
This commit is contained in:
parent
a125c81d40
commit
38a06a550b
4 changed files with 11 additions and 7 deletions
|
@ -15,7 +15,7 @@ install_homebrew() {
|
||||||
|
|
||||||
install_shared_applications() {
|
install_shared_applications() {
|
||||||
brew install direnv fzf git stow the_silver_searcher tmux \
|
brew install direnv fzf git stow the_silver_searcher tmux \
|
||||||
vim zsh rbenv ruby-build tfenv nodenv node-build tig libpq gnupg llvm \
|
vim zsh chruby ruby-build tfenv nodenv node-build tig libpq gnupg llvm \
|
||||||
awscli cmake jq watch gh nvim openssl@1.1 openssl@3 readline libyaml gmp \
|
awscli cmake jq watch gh nvim openssl@1.1 openssl@3 readline libyaml gmp \
|
||||||
pyenv ripgrep
|
pyenv ripgrep
|
||||||
|
|
||||||
|
|
|
@ -28,10 +28,8 @@ if which direnv > /dev/null; then
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if which rbenv > /dev/null; then
|
source /home/linuxbrew/.linuxbrew/opt/chruby/share/chruby/chruby.sh
|
||||||
eval "$(rbenv init --no-rehash -)"
|
source /home/linuxbrew/.linuxbrew/opt/chruby/share/chruby/auto.sh
|
||||||
(rbenv rehash &) 2> /dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
if which nodenv > /dev/null; then
|
if which nodenv > /dev/null; then
|
||||||
eval "$(nodenv init --no-rehash -)"
|
eval "$(nodenv init --no-rehash -)"
|
||||||
|
|
|
@ -80,6 +80,14 @@ function git-root {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function install-ruby {
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
echo Usage: install-ruby RUBY_VERSION
|
||||||
|
else
|
||||||
|
ruby-build $1 $HOME/.rubies/$1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function password-generator {
|
function password-generator {
|
||||||
if [ -x "$(command -v openssl)" ]; then
|
if [ -x "$(command -v openssl)" ]; then
|
||||||
password=$(
|
password=$(
|
||||||
|
|
|
@ -8,7 +8,6 @@ PERSONAL_BIN_PATH="$HOME/bin"
|
||||||
PERSONAL_FPATH="$ZDOTDIR/completions"
|
PERSONAL_FPATH="$ZDOTDIR/completions"
|
||||||
|
|
||||||
NODENV_PATH="$HOME/.nodenv/bin"
|
NODENV_PATH="$HOME/.nodenv/bin"
|
||||||
RBENV_PATH="$HOME/.rbenv/bin"
|
|
||||||
TFENV_PATH="$HOME/.tfenv/bin"
|
TFENV_PATH="$HOME/.tfenv/bin"
|
||||||
PYENV_PATH="$HOME/.pyenv/bin"
|
PYENV_PATH="$HOME/.pyenv/bin"
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ elif [[ "$OSTYPE" == linux* ]]; then
|
||||||
INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}";
|
INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ -d "$RBENV_PATH" ]] && PATH="$RBENV_PATH:$PATH"
|
|
||||||
[[ -d "$NODENV_PATH" ]] && PATH="$NODENV_PATH:$PATH"
|
[[ -d "$NODENV_PATH" ]] && PATH="$NODENV_PATH:$PATH"
|
||||||
[[ -d "$TFENV_PATH" ]] && PATH="$TFENV_PATH:$PATH"
|
[[ -d "$TFENV_PATH" ]] && PATH="$TFENV_PATH:$PATH"
|
||||||
[[ -d "$PYENV_PATH" ]] && PATH="$PYENV_PATH:$PATH"
|
[[ -d "$PYENV_PATH" ]] && PATH="$PYENV_PATH:$PATH"
|
||||||
|
|
Loading…
Reference in a new issue