fix: disable gruvbox in VMs, fix starship warnings, auto-detect browser #74
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes VM usability issues: gruvbox errors, starship warnings, and missing browser for gh CLI.
Problems Fixed
1. Gruvbox Colorscheme Error
Issue: init.vim tries to load gruvbox but it's not installed in minimal VM setups
Error: Vim shows colorscheme error on every startup
Fix: Disabled gruvbox plugin for VM setups (uses vim's default colorscheme)
2. Starship Git Status Warnings
Issue: Starship shows format string errors in git repos:
```
[WARN] - (starship::modules::git_status): Error parsing format string `git_status.stashed`
[WARN] - (starship::modules::git_status): Error parsing format string `git_status.untracked`
[WARN] - (starship::modules::git_status): Error parsing format string `git_status.modified`
```
Fix: Added `${count}` placeholder consistently to all git_status format strings
3. Browser Not Found (gh CLI)
Issue: gh CLI fails with:
```
! Failed opening a web browser at https://github.com/login/device
exec: "firefox": executable file not found in $PATH
```
Root Cause: BROWSER was hardcoded to `firefox` but VMs don't have it installed
Fix: Auto-detect available browser with priority:
Changes
Testing
✅ init.vim: No errors on vim startup
✅ starship: No warnings in git repositories
✅ BROWSER: Auto-detects available browser
VM Setup Notes
For gh CLI to work with browser in VMs:
Install chromium-browser:
```bash
sudo apt install chromium-browser
```
Use X11 forwarding when SSH'ing:
```bash
ssh -X -i ~/.ssh/vm_key user@vm-ip
```
Browser will open on host display:
Impact