Consolidate rbenv setup into single 20-rbenv script

Merge 10-rbenv-path (disabled, PATH-only) into 20-rbenv (active, init),
so both path_prepend and rbenv init live under one existence guard.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Ole-Morten Duesund 2026-03-10 17:13:42 +01:00
commit 9dded655fc
2 changed files with 1 additions and 7 deletions

View file

@ -1,7 +0,0 @@
# shellcheck shell=bash
# Set up rbenv (Ruby version manager)
# Disabled by default (chmod +x to enable)
path_prepend "$HOME/.rbenv/bin"
if command -v rbenv &>/dev/null; then
eval "$(rbenv init - bash)"
fi

View file

@ -1,5 +1,6 @@
# shellcheck shell=bash
# Initialize rbenv (Ruby version manager)
if [[ -x "$HOME/.rbenv/bin/rbenv" ]]; then
path_prepend "$HOME/.rbenv/bin"
eval "$("$HOME/.rbenv/bin/rbenv" init - --no-rehash bash)"
fi