Created
March 3, 2018 09:39
-
-
Save okitavera/accc14f42881532ff20cd5d32ec4fe99 to your computer and use it in GitHub Desktop.
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
## set term title example | |
_termdrawtitle () { | |
setopt EXTENDED_GLOB | |
printf '\e]2;%s\a' "$USER@$(hostname)" | |
} | |
add-zsh-hook precmd _termdrawtitle | |
add-zsh-hook preexec _termdrawtitle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment