chore: add instruction to show git info on bash prompt
This commit is contained in:
parent
ca53956ab6
commit
480a12947f
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
|
@ -58,3 +58,13 @@ ln -s ~/.local/share/gitmux ~/.local/bin/gitmux
|
||||||
# confirm
|
# confirm
|
||||||
gitmux -V
|
gitmux -V
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## display git info on terminal prompt
|
||||||
|
|
||||||
|
Add the following to your `.bashrc`
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export GIT_PS1_DESCRIBE_STYLE="default"
|
||||||
|
source /etc/bash_completion.d/git-prompt
|
||||||
|
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[01;31m\]$(__git_ps1 " (%s)")\[\033[00m\]\$ '
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue