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:
parent
6cc9123807
commit
9dded655fc
2 changed files with 1 additions and 7 deletions
|
|
@ -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
|
|
||||||
1
20-rbenv
1
20-rbenv
|
|
@ -1,5 +1,6 @@
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
# Initialize rbenv (Ruby version manager)
|
# Initialize rbenv (Ruby version manager)
|
||||||
if [[ -x "$HOME/.rbenv/bin/rbenv" ]]; then
|
if [[ -x "$HOME/.rbenv/bin/rbenv" ]]; then
|
||||||
|
path_prepend "$HOME/.rbenv/bin"
|
||||||
eval "$("$HOME/.rbenv/bin/rbenv" init - --no-rehash bash)"
|
eval "$("$HOME/.rbenv/bin/rbenv" init - --no-rehash bash)"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue