Skip to content

tkling/git-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

29 Commits
Β 
Β 
Β 
Β 

Repository files navigation

git-prompt

prompt format:

09:36 tkling [awesome-branch] git-prompt => 

The branch info (part in square brackets) is colored - red for 'dirty', green for 'clean'.

Copy pasta this script, or be sensible and source it, into your user bash profile (usually ~/.profile or ~/.bash_profile), reload your terminal, and look at your git info!

Only shows git info if you're in a git repo.

Requires a version of git with the symbolic-ref command => at least 1.5.6.6

Special thanks to @jusroberts for cleaning up the script and making colors work!

About

A bash prompt with git info πŸ•

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages