Added callback function to tweak prompt dynamicly

Thank you for the good work.
I lack the ability to dynamically change the prompt.
For example, I want to see the number of background jobs (jobs: 1)
But nothing will be shown if jobs number is zero.
For this purpose, I added callback function.