Skip to content

Instantly share code, notes, and snippets.

@okitavera
Created March 3, 2018 09:39
Show Gist options
  • Save okitavera/accc14f42881532ff20cd5d32ec4fe99 to your computer and use it in GitHub Desktop.
Save okitavera/accc14f42881532ff20cd5d32ec4fe99 to your computer and use it in GitHub Desktop.
## 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