I'm getting zsh set up in Windows and I'm getting a reverse (black on white (black terminal background)) percent symbol in the first character position in the line just above every prompt.
Usually that means there's no newline at the end of the file, for example when cat
-ing a file.
It doesn't happen on my Mac or even on Mintty on Windows. But it does happen in ConEmu and the standard terminal app that CMD.EXE usually runs in.
I've already unset
all my prompt strings as well as precmd()
which I normally use to add a blank line above the prompt.
Any clue what it could be?
Best Answer
The relevant option probably is
PROMPT_SP
, explanaition from the manualSo, either you do a
if you don't care about the covered up line (however in your case it seems to be a empty line, as you get the
%
sign at the beginning).Or use
which preserves partial lines, but removes the
%
-- at the cost of some empty lines over the prompt.To make this permanent, update your
~/.zshrc
.This is a blind shot, as I cannot reproduce this behaviour in my
cmd.exe
.