Created
June 24, 2020 11:48
-
-
Save breiter/4fcde8e16c6e8acf47c79bd238868ab3 to your computer and use it in GitHub Desktop.
Restore terminal title after ssh exits
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
# 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