Skip to content

Commit

Permalink
feat(ruby): replace rbenv with asdf to manage ruby version
Browse files Browse the repository at this point in the history
  • Loading branch information
Alienover committed Nov 7, 2024
1 parent 236109b commit 86ecc7d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
1 change: 1 addition & 0 deletions dotfiles/asdf/.asdfrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy_version_file = yes
1 change: 1 addition & 0 deletions dotfiles/asdf/.tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 3.3.5
2 changes: 1 addition & 1 deletion dotfiles/zsh/.config/zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ zsh_plugins=(
"history"
completion
brew
asdf
fnm
fzf
git
Expand All @@ -51,7 +52,6 @@ zsh_plugins=(
nvim
obsidian
yazi
ruby
ghq
p10k

Expand Down
3 changes: 3 additions & 0 deletions dotfiles/zsh/.config/zsh/plugins/asdf/asdf.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /usr/bin/env zsh

eval ". $(brew --prefix asdf)/libexec/asdf.sh"
11 changes: 1 addition & 10 deletions dotfiles/zsh/.config/zsh/plugins/ruby/ruby.zsh
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
#! /bin/env zsh

source "$ZDOTDIR/zsh-functions.zsh"

export PATH="/opt/homebrew/opt/ruby/bin:$PATH"

function __load_rbenv {
eval "$(rbenv init - --no-rehash zsh)"
}


zsh_lazy_load rbenv "__load_rbenv"
eval "$(rbenv init - --no-rehash zsh)"

0 comments on commit 86ecc7d

Please sign in to comment.