Conversation
Problem:
- init.vim tries to load gruvbox colorscheme that's not installed in VMs
- starship.toml has format string errors for git_status
- BROWSER hardcoded to firefox which isn't installed in VMs
Changes:
- init.vim: Disable gruvbox plugin for minimal VM setup
- starship.toml: Fix git_status format strings (add ${count} consistently)
- .zshenv: Auto-detect available browser (prioritize chromium-browser for VMs)
Impact:
- No more vim errors on VM startup
- No more starship warnings in git repos
- gh CLI can work with any installed browser (chromium recommended for VMs)
Add librewolf as first choice for BROWSER variable detection. LibreWolf is privacy-focused and will be installed by default in VMs. Priority order now: 1. librewolf (VMs) 2. firefox (host/fallback) 3. chromium-browser 4. chromium 5. xdg-open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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