Skip to content

xhs/git-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Git Prompt

Preview

Git Prompt Preview

Installation

mkdir -vp ~/.bash
cd ~/.bash
git clone git://github.com/xhs/git-prompt.git

Edit your ~/.bash_profile or ~/.profile and add the following:

source ~/.bash/git-prompt/git-prompt.sh
export PS1="\u@\H: \W \$git_branch\$git_dirty > "

License

BSD 2-Clause

About

Git aware prompt - display git branch name when in a git working directory.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages