You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add .ruby-version/.nvmrc support and enhance UX warnings
Based on final code review feedback:
**Version File Management:**
- Create .ruby-version for rvm users (enables auto-switching on cd)
- Create .nvmrc for nvm users (enables auto-switching on cd)
- Maintains .tool-versions for mise/asdf users
- Allows users to leverage each manager's native auto-switching features
**Improved Version Matching:**
- Fix rvm version check to avoid partial matches (3.2.8 won't match 3.2.80)
- Use word boundaries in grep pattern for exact version matching
**Enhanced User Warnings:**
- Make subshell limitation warnings more explicit and prominent
- Explain WHY versions don't persist (subshell vs. parent shell)
- Provide clear, actionable steps with two distinct options:
1. Open new terminal (recommended)
2. Source shell config files (with exact commands)
- Show appropriate sourcing commands based on version manager
**Documentation:**
- Add warning about not mixing version managers (mise + rvm, etc.)
- Explain version manager priority (mise > asdf > rvm+nvm)
- Clarify potential confusion from using multiple managers
These changes make the script more user-friendly by enabling native
auto-switching features and setting much clearer expectations about
how version changes work with rvm/nvm.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
# Add to shell config (the installer usually does this automatically)
96
96
```
97
97
98
-
**Note:** If you only have rvm (no nvm) or only nvm (no rvm), the script will detect this and provide helpful error messages guiding you to install the missing manager or switch to mise/asdf.
98
+
**Important Notes:**
99
+
100
+
- If you only have rvm (no nvm) or only nvm (no rvm), the script will detect this and provide helpful error messages guiding you to install the missing manager or switch to mise/asdf.
101
+
-**Do not mix version managers** (e.g., don't install both mise and rvm). The script prioritizes mise > asdf > rvm+nvm, so mise/asdf will always take precedence. Using multiple managers can cause confusion about which versions are active.
0 commit comments