From 72074db0c0ad60b6d7134cff34ef4855a134fb30 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 26 Apr 2021 01:55:54 +0200 Subject: prompt: add git-bug count --- bin/hibiki/prompt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/hibiki/prompt b/bin/hibiki/prompt index ee77770..e28336d 100755 --- a/bin/hibiki/prompt +++ b/bin/hibiki/prompt @@ -11,6 +11,9 @@ fi RESET="\[$(tput sgr0)\]" # count jobs -JOBS='`[ \j -gt 0 ] && printf " (\j)"`' +JOBS='`[ \j -gt 0 ] && printf " 󰘙 \j"`' -echo "${SET_TERM_TITLE}${color}\w${RESET}${JOBS} ❱ " +# show git-bug tickets +BUGS='`exit=$?; git rev-parse >/dev/null 2>&1 && printf " 󰨰 $(git bug ls --status=open | wc -l)"; exit $exit`' + +echo "${SET_TERM_TITLE}${color}\w${RESET}${JOBS}${BUGS} ❱ " -- cgit 1.4.1