Skip to content

Instantly share code, notes, and snippets.

@ScottJWalter
Created October 18, 2025 20:57
Show Gist options
  • Save ScottJWalter/4133378a565e72f01ac7bc30a48e86e7 to your computer and use it in GitHub Desktop.
Save ScottJWalter/4133378a565e72f01ac7bc30a48e86e7 to your computer and use it in GitHub Desktop.
Set Terminal Window name in ZSH + OMZ
#!/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