You are not logged in.
Pages: 1
I've spent some time trying to figure it out now, to no avail.
I've made a fancy PS1, but whenever I type a full line a character at the end of the line seems to disappear, leading to very confusing situations. I've read something about putting a \ before the []'s, but the only non-escaped characters are those that should appear in the PS1 and the ones that are supposed to be there according to the wiki. Please help me find a solution.
PS1='\[\033[1;30m\][\[\033[1;34m\]\u\[\033[1;30m\]@\[\033[1;34m\]\h\[\033[1;30m\] \[\033[1;31m\]\W\[\033[1;30m]\]\[\033[1;30m\]\$\[\033[0m\] '
This is what the result looks like(excluding colors):
[cephalopoid@paste ~]$
EDIT: A kind fellow on IRC helped me out when I pasted the link to this post. Seems I misplaced the \] and the ] after the \W.
Case solved, no more linewrap problems. Thanks for reading.
Last edited by cephalopoid (2010-11-10 09:43:04)
Offline
Please edit the subject and prepend [SOLVED].
Steven [ web : git ]
GPG: 327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com
Offline
Pages: 1