Title: Link to git-prompt.sh in "A1.6 Git in Bash" · Issue #2062 · progit/progit2 · GitHub
Open Graph Title: Link to git-prompt.sh in "A1.6 Git in Bash" · Issue #2062 · progit/progit2
X Title: Link to git-prompt.sh in "A1.6 Git in Bash" · Issue #2062 · progit/progit2
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 ...
Open Graph 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 t...
X 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 g...
Opengraph URL: https://github.com/progit/progit2/issues/2062
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Link to git-prompt.sh in \"A1.6 Git in Bash\"","articleBody":"### General overview of your idea.\n\nIn the [\"A1.6 Git in Bash·](https://git-scm.com/book/en/v2/Appendix-A:-Git-in-Other-Environments-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.\n\nI 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:\n\n> To add these to your prompt, just copy the `contrib/completion/git-prompt.sh` file from Git’s source repository to your home directory, add something like this to your .bashrc:\n\nInto this:\n\n> To add these to your prompt, just copy the [`contrib/completion/git-prompt.sh`](https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh) file from [Git’s source repository](https://github.com/git/git) to your home directory, add something like this to your .bashrc:\n\nCould even add a code snippet right after to curl the file into the right location:\n\n```\ncurl -o ~/git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh\n```\n\nIf you think it's a good idea I can create a pull request implementing the change.\n\n### What problem will this solve?\n\nMaking the experience of setting up a bash git prompt more straightforward\n\n### Have you thought about other solutions?\n\n_No response_\n\n### Do you want to help with this enhancement idea?\n\nYes","author":{"url":"https://github.com/marbru","@type":"Person","name":"marbru"},"datePublished":"2025-11-13T10:43:11Z","url":"https://github.com/progit/progit2/issues/2062"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e0f9b8e0-1a81-e667-864c-60e4abaebaeb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E4A2:36D84F:1B3572A:2483997:6AED8D0E |
| html-safe-nonce | 2af68c0ee7a41f329eeff89162a61ca2516eb71ac9e5d74f1dc39b222ac40ea8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEEyOjM2RDg0RjoxQjM1NzJBOjI0ODM5OTc6NkFFRDhEMEUiLCJ2aXNpdG9yX2lkIjoiOTAzMTMzNTk3NjMwNjA1MjM2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0b667c96a2b039e6e575f4c3800064ca932470317258990b7dc3296a2f616ee4 |
| hovercard-subject-tag | issue:3620636418 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/progit/progit2/2062/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0778ed5dded2c12258c396d3fbe8a4c3368ebeec887871c36ca77013e60c9926/progit/progit2/issues/2062 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0778ed5dded2c12258c396d3fbe8a4c3368ebeec887871c36ca77013e60c9926/progit/progit2/issues/2062 |
| og:image:alt | 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 t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | marbru |
| hostname | github.com |
| expected-hostname | github.com |
| None | 56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11 |
| turbo-cache-control | no-preview |
| go-import | github.com/progit/progit2 git https://github.com/progit/progit2.git |
| octolytics-dimension-user_id | 95588 |
| octolytics-dimension-user_login | progit |
| octolytics-dimension-repository_id | 15400220 |
| octolytics-dimension-repository_nwo | progit/progit2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 15400220 |
| octolytics-dimension-repository_network_root_nwo | progit/progit2 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width