Skip to content

Instantly share code, notes, and snippets.

@mapix
Created March 21, 2013 05:58
Show Gist options
  • Select an option

  • Save mapix/5210977 to your computer and use it in GitHub Desktop.

Select an option

Save mapix/5210977 to your computer and use it in GitHub Desktop.
Reset gnome-terminal title when ssh exit
update_title() {
xtitle --title "$USER@$HOSTNAME ${PWD/#$HOME/~}"
}
PROMPT_COMMAND="update_title"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment