chore: add instruction to show git info on bash prompt

This commit is contained in:
ayo 2026-06-24 20:17:03 +02:00
parent ca53956ab6
commit 480a12947f

View file

@ -58,3 +58,13 @@ ln -s ~/.local/share/gitmux ~/.local/bin/gitmux
# confirm
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\]\$ '
```