Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ FR ] Disable Git status tracking per directory #5919

Open
cig0 opened this issue Apr 10, 2024 · 0 comments
Open

[ FR ] Disable Git status tracking per directory #5919

cig0 opened this issue Apr 10, 2024 · 0 comments
Labels
✨ enhancement A new feature implementation.

Comments

@cig0
Copy link
Sponsor

cig0 commented Apr 10, 2024

Feature Request

Is your feature request related to a problem? Please describe.

I started using Jujutsu CVS (a Git wrapper) to track 'live'/'hot' changes of some of my $HOME dotfiles. This implies making $HOME effectively a Git repository.

Describe the solution you'd like

It would be very convenient to ask Starship to ignore the status of that specific repository to avoid the visual noise, as I already know that repository will perpetually be in a dirty state:

Spectacle-Screenshot_20240410_090426

Describe alternatives you've considered

I thought about a pre-prompt hook that checks the current directory and suppresses the git status output if the directory is $HOME. This hook would be executed before Starship generates the prompt (somehow). But I'm not sold on the idea; it reeks of ugly workaround-ishness (?)

@cig0 cig0 added the ✨ enhancement A new feature implementation. label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement A new feature implementation.
Projects
None yet
Development

No branches or pull requests

1 participant