How deanhouseholder/gitprompt works
Bash Git Prompt provides a Git-aware Bash prompt, Git shortcut/menu helpers, and Git command completion. The documented user workflow is to source the default prompt from a Bash startup file, then see repository state in the prompt; users can also invoke the shortcut menu or use shell completion. Source excerpts were unavailable, so internal calls between the listed scripts are not inferred.
Main entry points: git-prompt.sh Git prompt · default-prompt.sh Default prompt · git-shortcuts.sh Git shortcuts · menu.sh Shortcut menu
Components 9
Git Prompt
- Default prompt
default-prompt.sh - Git prompt
git-prompt.sh
Git Shortcuts
- Git shortcuts
git-shortcuts.sh - Shortcut menu
menu.sh - Menu example
menu_example.sh
Git Completion
- Git completion
git-completion.bash
Other components
- Bash user
- Bash shell
- Git
Connections 7
- Bash user → Bash shell: uses
- Bash shell → Default prompt: sources
- Bash shell → Git prompt: displays prompt
- Git prompt → Git: detects Git state
- Bash user → Git shortcuts: invokes shortcuts
- Bash user → Shortcut menu: opens menu
- Bash shell → Git completion: uses completion