Created
December 12, 2012 23:49
-
-
Save riywo/4272801 to your computer and use it in GitHub Desktop.
setting hostname as screen window title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1='\[\033k'"$HOSTNAME"'\033\\\]'"$PS1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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