Dynamic window title in Urxvt with Zsh?

Viewed 4915

How can I set the window title of Urxvt to the currently running (interactive) command in Zsh shell?

For instance, if I am running journalctl, I want journalctl to be displayed as the window title. Currently the window title is just showing urxvt, which is fine if I am running no commands.

2 Answers
Related