From ca0a0d77da6516cea5a6b1790f9d68f628677ba7 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 22 Apr 2021 13:20:23 +0200 Subject: prompt: show background jobs --- bin/hibiki/prompt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin/hibiki') diff --git a/bin/hibiki/prompt b/bin/hibiki/prompt index f4f8f27..ee77770 100755 --- a/bin/hibiki/prompt +++ b/bin/hibiki/prompt @@ -10,4 +10,7 @@ else fi RESET="\[$(tput sgr0)\]" -echo "${SET_TERM_TITLE}${color}\w${RESET} ❱ " +# count jobs +JOBS='`[ \j -gt 0 ] && printf " (\j)"`' + +echo "${SET_TERM_TITLE}${color}\w${RESET}${JOBS} ❱ " -- cgit 1.4.1