bashrc: update ps1

This commit is contained in:
Marco Thomas
2022-12-26 18:49:10 +01:00
parent bd8e59227d
commit 8a919f67f3
2 changed files with 15 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ esac
git_branch() {
if $(git rev-parse --git-dir > /dev/null 2>&1); then
local branch_name=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
echo "${branch_name}"
echo "(${branch_name}) "
fi
}