Customizing the Bash prompt to include number of suspended processes -


I have read and I would like to add the number of prompts which are currently suspended by pressing ctrl + z. . According to that list, I have to use

  \ j   

to be able to complete it. Ideally, I would like to add

 : (number)   

at my prompt which is more than zero and regular and white if it was zero If this "if" behavior is not possible, then I could always read it white and regularly. Can anyone help me with this? Below is the output of my PS1 variable.

  Farmer @ dev: ~ / testDir $ echo $ PS1 \ [\ e] 0; \ U @ \ h: \ w \ a \] $ {Debian_chroot: + ($ debian_chroot)} \ u @ \ h: \ w \ $   

Thanks!

  PS1 = '... ...: [$ (((\ \ & Gt; 0)) & amp; amp; amp; amp; amp; amp; amp; [amp; \ j \ [$ (tput sgr0) \] ... '   

Comments