Skip to content

Instantly share code, notes, and snippets.

@riywo
Created December 12, 2012 23:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riywo/4272801 to your computer and use it in GitHub Desktop.
Save riywo/4272801 to your computer and use it in GitHub Desktop.
setting hostname as screen window title
export PS1='\[\033k'"$HOSTNAME"'\033\\\]'"$PS1"
Host *
PermitLocalCommand yes
LocalCommand echo -ne "\033k%h\033\\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment