Swap in chruby for rbenv

This commit is contained in:
Andrew Tomaka 2023-10-24 20:47:30 -04:00
parent a125c81d40
commit 38a06a550b
Signed by: atomaka
GPG Key ID: 61209BF70A5B18BE
4 changed files with 11 additions and 7 deletions

View File

@ -15,7 +15,7 @@ install_homebrew() {
install_shared_applications() {
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 \
pyenv ripgrep

View File

@ -28,10 +28,8 @@ if which direnv > /dev/null; then
eval "$(direnv hook zsh)"
fi
if which rbenv > /dev/null; then
eval "$(rbenv init --no-rehash -)"
(rbenv rehash &) 2> /dev/null
fi
source /home/linuxbrew/.linuxbrew/opt/chruby/share/chruby/chruby.sh
source /home/linuxbrew/.linuxbrew/opt/chruby/share/chruby/auto.sh
if which nodenv > /dev/null; then
eval "$(nodenv init --no-rehash -)"

View File

@ -80,6 +80,14 @@ function git-root {
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 {
if [ -x "$(command -v openssl)" ]; then
password=$(

View File

@ -8,7 +8,6 @@ PERSONAL_BIN_PATH="$HOME/bin"
PERSONAL_FPATH="$ZDOTDIR/completions"
NODENV_PATH="$HOME/.nodenv/bin"
RBENV_PATH="$HOME/.rbenv/bin"
TFENV_PATH="$HOME/.tfenv/bin"
PYENV_PATH="$HOME/.pyenv/bin"
@ -45,7 +44,6 @@ elif [[ "$OSTYPE" == linux* ]]; then
INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}";
fi
[[ -d "$RBENV_PATH" ]] && PATH="$RBENV_PATH:$PATH"
[[ -d "$NODENV_PATH" ]] && PATH="$NODENV_PATH:$PATH"
[[ -d "$TFENV_PATH" ]] && PATH="$TFENV_PATH:$PATH"
[[ -d "$PYENV_PATH" ]] && PATH="$PYENV_PATH:$PATH"