3

I using zsh. However, the command search history feature(ctrl-r) is giving me issues. Specifically, the text gets garbled. Everything executes correctly regardless, but UX it's a bad experience.

Using the same cloud, this issue exists in my client terminals... both in linux system with urxvt terminal and also in wsl terminal.

How can I fix it to where the text does not get garbled? The example below shows in red circles the text that is messed up and in green what it should look like.

EDIT: here is my PROMPT

one@work ~/github/sp6-client
% echo $PROMPT
%K{blue}%n@%m%k %B%F{green}%(4~|...|)%3~%F{white}
%# %b

enter image description here

UPDATE: Options list

one@work ~/github/sp6-client
% setopt
alwaystoend
autocd
nobeep
correct
extendedglob
interactive
kshglob
login
monitor
printeightbit
shinstdin
zle

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.