-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
General overview of your idea.
In the "A1.6 Git in Bash· chapter, it points you to a git-prompt.sh file in the git repository, but it doesn't provide any links. I had to go thru a bit of googling to find the file in question.
I think it would be useful to provide at the very least a link to the repository, or even directly to the file, or both. Tu turn this paragraph:
To add these to your prompt, just copy the
contrib/completion/git-prompt.shfile from Git’s source repository to your home directory, add something like this to your .bashrc:
Into this:
To add these to your prompt, just copy the
contrib/completion/git-prompt.shfile from Git’s source repository to your home directory, add something like this to your .bashrc:
Could even add a code snippet right after to curl the file into the right location:
curl -o ~/git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
If you think it's a good idea I can create a pull request implementing the change.
What problem will this solve?
Making the experience of setting up a bash git prompt more straightforward
Have you thought about other solutions?
No response
Do you want to help with this enhancement idea?
Yes