diff options
| author | Robert Günzler <r@gnzler.io> | 2021-04-22 13:20:23 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-04-26 02:09:48 +0200 |
| commit | ca0a0d77da6516cea5a6b1790f9d68f628677ba7 (patch) | |
| tree | a78644c3f99cfa1bb2a2e8b8b7dc3a8f78f4413b /bin | |
| parent | 23050d0a3a958cd011cd2bc87aa8a6f546399af2 (diff) | |
prompt: show background jobs
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/hibiki/prompt | 5 |
1 files changed, 4 insertions, 1 deletions
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} ❱ " |