Skip to content

Instantly share code, notes, and snippets.

@breiter
Created June 24, 2020 11:48
Show Gist options
  • Select an option

  • Save breiter/4fcde8e16c6e8acf47c79bd238868ab3 to your computer and use it in GitHub Desktop.

Select an option

Save breiter/4fcde8e16c6e8acf47c79bd238868ab3 to your computer and use it in GitHub Desktop.
Restore terminal title after ssh exits
# Add to ~/.zshrc
function clear_term_title {
# removes the text that ssh puts into the terminal title
printf '\033]0;\007'
}
PROMPT="$(clear_term_title)%% "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment