oh-my-fish / theme-bobthefish

A Powerline-style, Git-aware fish theme optimized for awesome.
MIT License
1.44k stars 222 forks source link

Add Fossil VCS support #363

Closed demize closed 2 months ago

demize commented 2 months ago

Started using Fossil for a project, and was annoyed that I didn't have status in my prompt. This commit adds it in!

I will admit I'm not overly familiar with Fossil, so this may be less than ideal (and might be missing important statuses), but in my testing it works pretty well. I added a new option to enable Fossil support (disabled by default, because most people won't need it; Fossil is pretty quick, so it shouldn't have the same issues as Mercurial), updated the README, and tried to stick to the same coding style as the existing code.

My one complaint about my own work is the default (non-NF) Fossil glyph, which is just the bone emoji. The NF bone emoji is alright (though I'd prefer something more evocative of "fossil") but I couldn't think of a better symbol outside NF.

demize commented 2 months ago

Addressed all the feedback, tweaked the prompt a little bit more, and also noticed that sometimes Fossil would take 1-2 seconds to print the fossil info output. Tracking that down and coming up with a solution took me longer than anticipated, but I got something pretty good working with fossil json status I think!

bobthecow commented 2 months ago

Awesome, thanks for this!