LINUX LITE 7.4 RC1 RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I get long command lines to wrap to the next line?
#2
(08-30-2015, 08:13 AM)jacatone link Wrote: I'm using color in my bash shell but can't get the text to drop to the next line below. Could someone tell me what's wrong here?

export PS1="\[\e[1;31m[\u@\h \W]\$ \e[m "
If you want to move the prompt sse the \n switch at the end
Code:
export PS1="\e[1;31m[\u@\h \W]\$ \e[m \n"
Reply


Messages In This Thread
Re: How do I get long command lines to wrap to the next line? - by misko_2083 - 08-30-2015, 09:42 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)