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:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/.common.sh b/.common.sh
@@ -45,7 +45,14 @@ get_git_branch() {
 			;;
 		esac
 
-		printf -- '[41;36mī°[30m ī %s[0;31mī°' "$branch"
+		if test "$(git notes list | wc -l)" -gt 0
+		then
+			notes="š"
+		else
+			notes=""
+		fi
+
+		printf -- '[41;36mī°[30m %sī %s[0;31mī°' "$notes" "$branch"
 	else
 		echo '[0;36mī°'
 	fi