From 480a12947f364263bac6a63a3759b848c331dcbc Mon Sep 17 00:00:00 2001 From: Ayo Date: Wed, 24 Jun 2026 20:17:03 +0200 Subject: [PATCH] chore: add instruction to show git info on bash prompt --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 5e7b6f2..82a3655 100644 --- a/README.md +++ b/README.md @@ -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\]\$ ' +```