Implement basic git support inside left prompt
Open
Nobody has claimed this yet.
category:enhancement
status:needs-triage
- Dominant language
- Rust
- Stars
- 40.5k
- Forks
- 2.3k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 85
Description
Related problem
There is no git branch and git status info shown in prompt, so users need to execute them manually to check what's going on in repo.
Describe the solution you'd like
- show git branch in repositories
- show amount of changed files
Describe alternatives you've considered
No response
Additional context and details
I will implement it.
BTW, fish 3.3.1 shows git branches out of the box.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating Nushell's left-prompt implementation and the prompt data flow, then determine how repository context can provide the current Git branch and changed-file count. Done means repositories show the branch and the amount of changed files in the left prompt, with appropriate verification added or run for the prompt behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100