#first few characters of previous command become part of the prompt when i press the up arrow

1 messages · Page 1 of 1 (latest)

steep scarab
neon hamlet
#

did you change anything inside your .bashrc file?

#

other than the prompt

steep scarab
#

nope

#

this has been happening for months, no matter the prompt

neon hamlet
#

Just with bash?

steep scarab
#

wait

#

okay it doesn't work with a single line prompt

#

but single line prompt ugly

neon hamlet
#

Soo for the multiline prompt you did something like this right? PS1=$'$PWD\n$ '

#

and the colors and stuff

#

Cause for me it seems to work fine

neon hamlet
steep scarab
#

PS1='\e[31m[\e[33m\u\e[32m@\e[36m\h \e[34m\W\e[35m]\n\e[30mλ\e[0m '

neon hamlet
#

works fine to me

#

don t know what might be the problem

#

I m out of ideas sorry :(

steep scarab
#

dang

acoustic barn
#

@steep scarab happens on multiple terminal emulators too?

acoustic barn
#

and multiple shells? (bash, zsh, etc)

steep scarab
#

no, only on bash