Created
June 24, 2020 11:37
-
-
Save breiter/749684af88d32af349820f37cf2dc8e0 to your computer and use it in GitHub Desktop.
Restore terminal title when 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 ~/.bashrc | |
# | |
# force reset of the current directory name in terminal title | |
# to reset it after SSH sessions end. | |
PROMPT_COMMAND='echo -ne "\033]0;$(basename ${PWD})\007"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment