LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-25-2012, 10:37 AM   #1
688a
Member
 
Registered: Sep 2012
Location: Hong Kong
Distribution: Slackware14 (3.7)
Posts: 51

Rep: Reputation: Disabled
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.

Last edited by 688a; 10-26-2012 at 07:32 AM.
 
Old 10-25-2012, 11:08 AM   #2
688a
Member
 
Registered: Sep 2012
Location: Hong Kong
Distribution: Slackware14 (3.7)
Posts: 51

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 688a View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash PS1 Fraeco Linux - Newbie 4 06-05-2011 04:24 AM
PS1 variable Kenny_Strawn Linux - General 4 12-15-2010 09:38 AM
how to keep changes to PS1 across terminals? wrapster Solaris / OpenSolaris 5 05-28-2008 09:51 PM
$PS1 different in X and prompt codec Slackware 7 06-27-2004 04:42 PM
PS1 variable wogga Red Hat 2 05-26-2004 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration