function omz_termsupport_preexec {
  emulate -L zsh
  setopt extended_glob

  if [[ "$DISABLE_AUTO_TITLE" == true ]]; then
    return
  fi

  # cmd name only, or if this is sudo or ssh, the next cmd
  local CMD=${1[(wr)^(*=*|sudo|ssh|mosh|rake|-*)]:gs/%/%%}
  local LINE="${1:gs/%/%%}"

  title '$CMD' '%100>...>$LINE%<<'
}

Change title to alias instead of expanded command
Change title to alias instead of expanded command
