Charles K. Lee II wrote:
You probably want to insert a similar command into the PROMPT_COMMAND environment variable. It's description from the bash man page is as follows:
If set, the value is executed as a command prior to issuing each primary prompt.
But doesn't that happen after the fact? I want to display the command name in the title bar while the command is running.