Skip to content

SunilWang/gitbash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gitbash

better bash settings for git usage

check out git-prompt.sh to somewhere in your local machine. For example

cd ~/.bash/
git clone https://github.com/mocheng/gitbash

Then, in your ~/.bashrc, add below lines

source ~/.bash/gitbash/git-prompt.sh
PS1="\u@:\w\[\e[1;32m\]\$(parse_git_branch_or_tag)\[\e[0m\]$"

Now, your have current branch name displayed in your prompt.

About

better bash settings for git usage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%