Skip to content

Instantly share code, notes, and snippets.

@breiter
Created June 24, 2020 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breiter/4fcde8e16c6e8acf47c79bd238868ab3 to your computer and use it in GitHub Desktop.
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