Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 471 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 471 Bytes

Git Bash Prompt

Git Bash Prompt is a simple prompt for bash to display git status information.

Usage

In .bashrc do the following:

    . .git-prompt.bash
    PS1="\u@\h:\w\$(git_bash_prompt)\$ "
                  ^^^^^^^^^^^^^^^^^^^^^

NOTE: The backslash before the $ is required.

Prompt

~/dev/git-bash-prompt [master ≡] $

~/dev/git-bash-prompt [master ≡ +1 ~0 -0 | +1 ~0 -0 !] $