xfce4-terminal shows “Untitled” with zsh

xfce4-terminal shows untitled which zsh configured.

Solution:

  • ❯ /bin/cat ~/.zshrc
    export PROMPT_COMMAND='printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
    precmd() { eval "$PROMPT_COMMAND" }

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.