logo

dotfiles

My dotfiles, one branch per machine, rebased on base git clone https://hacktivis.me/git/dotfiles.git
commit: 1ee9ab53eb6cb0d8c6e2ce5f856b3a274c492083
parent 44fe8f7c0438a48238b65c51ef6ad137c4a2770f
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 18 Feb 2022 23:40:51 +0100

.common.sh: Add status of git notes

Diffstat:

M.common.sh9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/.common.sh b/.common.sh @@ -45,7 +45,14 @@ get_git_branch() { ;; esac - printf -- 'ī‚° ī‚ %sī‚°' "$branch" + if test "$(git notes list | wc -l)" -gt 0 + then + notes="šŸ–‰" + else + notes="" + fi + + printf -- 'ī‚° %sī‚ %sī‚°' "$notes" "$branch" else echo 'ī‚°' fi