LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   What's wrong with my PS1? (http://www.linuxquestions.org/questions/slackware-14/whats-wrong-with-my-ps1-4175434038/)

688a 10-25-2012 10:37 AM

What's wrong with my PS1?
 
Hi there.

I've put the following in my .bashrc which is created by myself:
Quote:

alias ls="ls -h --color=auto"
export PS1='\[\033[01;33m\]\u\[\033[00;34m\]¦¦\[\033[01;31m\]\W \[\033[00m\]» '
I expect the prompt would be like the following in color, and it is:
Quote:

dww¦¦~ »
The problem is, when I type in command, whenever I type the eleventh character, the prompt would repeat itself. What I mean is, if I type 12345678901 on the prompt, at the last "1", the prompt repeats itself and the result would be like:
Quote:

dww¦¦~ » 1234567890¦¦~ » 12345678901_
It keeps repeating itself whatever I type after the eleventh character.

Any idea of what's wrong with my PS1 prompt setup?

Thx guys.

688a 10-25-2012 11:08 AM

Quote:

Originally Posted by 688a (Post 4814691)
Hi there.

I've put the following in my .bashrc which is created by myself:


I expect the prompt would be like the following in color, and it is:


...

OK. It is solved. When I replaced the '¦¦' character by others, it stops repeating itself.


All times are GMT -5. The time now is 03:10 PM.