set rxvt title from shell

26 Mar

set the rxvt title using a shell-command:

printf \\033]0\;\%s\\007 “$title”

using this e.g. as bin/set_rxvt_title, you can push even a cygwin-rxvt-ssh session to dynamically change the window-title to the host you connect to. put this into your “~/.ssh/config“:

PermitLocalCommand yes
LocalCommand $HOME/bin/set_rxvt_title %h

Leave a Reply

Your email address will not be published. Required fields are marked *