oc1001
June 9th, 2008, 05:27 AM
Context: I've just upgraded from edgy, and figured I might as well go all the way to hardy. So I'm running terminal 2.22.1 in a pretty vanilla installation of hardy on an x86-64 machine.
The problem: when I try to cycle through my command history in bash, my prompt, which is usually just a '$ ', has the first 12 characters of the previous command appended to it. Everything works fine, except that the prompt has become significantly harder to read..!
Any ideas of how I might go about fixing this? Here's the command I use for my PS1 variable in .bashrc - I'm guessing this might be the problem, but I never had this problem in edgy...
PS1='\n${debian_chroot:+($debian_chroot)}\[\033[00;32m\]\u@\h \[\033[00;33m\]\w\[\033[00m\]\n\$ '
So my prompt usually consists of <my user name>@<my machine name> <current directory>, and then on a new line, '$ '. The first line works fine, but the second one does not.
Any help would be most appreciated...!
The problem: when I try to cycle through my command history in bash, my prompt, which is usually just a '$ ', has the first 12 characters of the previous command appended to it. Everything works fine, except that the prompt has become significantly harder to read..!
Any ideas of how I might go about fixing this? Here's the command I use for my PS1 variable in .bashrc - I'm guessing this might be the problem, but I never had this problem in edgy...
PS1='\n${debian_chroot:+($debian_chroot)}\[\033[00;32m\]\u@\h \[\033[00;33m\]\w\[\033[00m\]\n\$ '
So my prompt usually consists of <my user name>@<my machine name> <current directory>, and then on a new line, '$ '. The first line works fine, but the second one does not.
Any help would be most appreciated...!