This question already has an answer here:

I want to display running clock inside terminal.

I have already gone through this answer but this method only works in zsh terminal. But I want to display in bash.

Is there any other way to display it in bash terminal?

merged by Mitch Sep 20 '14 at 16:36

This question was merged with How to show a running clock in terminal before the command prompt because it is an exact duplicate of that question.