Skip to content

csc027/git-bash-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 !] $

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages