Set window name in Tmux to hostname

This is the quick way to set window name to hostname connected to. printf "\033k`hostname -s`\033\\"printf "\033k`hostname -s`\033\\" See http://superuser.com/questions/249293/rename-tmux-window-name-to-prompt-command-ps1-or-remote-ssh-hostname

Fork me on GitHub