Is there a way I can configure the remote tab title of a Konsole window to show the current directory as my tab title? Is there a way I can use the %w option to configure it as such?

1 Answer 1


Figured it out. You can use your shell config to render text in place of %w.

I added the following line to the zshrc file in the server I ssh'd to have a shortened version of pwd act as the tab title with the %w option.

function precmd () {
   echo -ne "$window_title"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .