diff --git a/ruby/path.zsh b/ruby/path.zsh index f646be575..3bca018e7 100755 --- a/ruby/path.zsh +++ b/ruby/path.zsh @@ -2,7 +2,8 @@ if [ -d "$HOME/.rbenv" ]; then export PATH="$HOME/.rbenv/bin:$PATH" fi -# shellcheck disable=SC2039 -if rbenv &>/dev/null; then - eval "$(rbenv init -)" -fi + +rbenv() { + eval "$(command rbenv init -)" + rbenv "$@" +}