termux-style
termux-style copied to clipboard
Weird colors on reverse search
To reproduce just set your PS1 on .bashrc to one with some background colors (and yes I'm using \e[0m
to reset at the end), and do CTRL+R.
Here's an example of one: PS1="\[\e[42m\]\u@\h\[\e[0m\]\$ "
(It happens without the \[
and \]
too).
I noticed that if you remove the space at the end after the \$
it won't happen.
I also checked if this was a Termux problem by trying this without styling but it doesn't happen (on another phone tho, also about that maybe you should add a reset option).
Screenshot (here I'm not using powerline):