🍿 Configure zsh partial line ending with PROMPT_EOL_MARK
Snacks (🍿) are my collection of recipes for solving problems. Often recorded (and cleaned up) from actual discussions where I'm involved in helping others with technical problems. Not all solutions are mine but I started collecting them in one place because you never know when you need one.
Have you ever used zsh as your shell and wondered what a highlighted % sign at the end of an output means?
It's zsh's default way to show that the output did not end with a new line. Zsh starts the prompt on a new line and to give the user an indication if that is not included in the output, it by default prints an highlighted %
symbol.
This can be controlled with PROMPT_EOL_MARK
environment variable:
export PROMPT_EOL_MARK=''
By adding this to your zsh shell config file, the %
symbol disappears.