2sjq1g
Last Updated: February 25, 2016
·
862
· marti1125
Yo

git tip for linux users

sudo gedit .bashrc

add this line:

export PS1='\[\033[01;34m\] \w\[\033[31m\]$(__git_ps1 "(%s)") \[\033[01;34m\]$\[\033[00m\] '

Picture

Say Thanks
Respond

3 Responses
Add your response

5235
15927fc52919e9223adc7ed99e125d4d

My personal favorite is Sexy Bash Prompt

https://github.com/gf3/dotfiles/blob/master/.bash_prompt

which looks like
sexy bash prompt

I personally have a colder colored fork which also showed unsynced branches:

https://github.com/twolfson/dotfiles/blob/6d25a86da78ab7e55c5e1d0e33e24dac7bd38c03/.bashrc#L44-L170

over 1 year ago ·
5240
736212 10200976756252420 836055407 o

@twolfson your coloring rox :)

over 1 year ago ·
15755
9582a1e999527bea2c2fa342dceb03d0

That wont do anything without git bash completions. You need to source the appropriate file depending on your shell.

https://github.com/git/git/tree/master/contrib/completion

over 1 year ago ·
Filed Under