I have defined in one file which I source from
.bashrc, color constants.. like these..
txtgrn='\e[0;32m' # Green
txtylw='\e[0;33m' # Yellow
txtblu='\e[0;34m' # Blue
txtpur='\e[0;35m' # Purple
When I try to use them in my $PS1 variable I am getting strange results, in that everything looks fine till I press
CTRL-R for recursive history search when few characters on the begining scramble, so I am able for example to delete them pressing
CTRL-D in shell behind that -> pointer :
I am using
$'..' notation, to be able to insert unicode chars..
so now, what is the proper way of inserting variable like
$txtblu from above, into
so line like this one:
makes rendering of symbols and colors ok, but when I press Ctrl+R, type few chars, and then Ctrl+B few(2 of them I think) characters appear on the beginning of resulting command search which are not belonging to that history line, and I am able to delete them.