Created
October 18, 2025 20:57
-
-
Save ScottJWalter/4133378a565e72f01ac7bc30a48e86e7 to your computer and use it in GitHub Desktop.
Set Terminal Window name in ZSH + OMZ
This file contains hidden or 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
| #!/bin/sh | |
| . | |
| . | |
| . | |
| # In .zshrc after OMZ initialization, so towrads the bottom | |
| title() { | |
| echo -ne '\033]0;'"$(hostname)"'\a' | |
| } | |
| # Then in precmd/preexec or manually | |
| precmd() { | |
| title | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment