[SOLVED] bash prompt won't wrap properly

2007-04-16 Thread Tyler Smith
On 2007-04-16, Tyler Smith [EMAIL PROTECTED] wrote: On 2007-04-15, Gerard Robin [EMAIL PROTECTED] wrote: I encountered the same problem and I solved it adding \]\n[\ in my PS1. my PS1: PS1=${magenta}[\[$TIME\] [EMAIL PROTECTED] \[${BLUE}\]\#\[$NC\]]\w\$ hth. That's interesting. If I

bash prompt won't wrap properly

2007-04-15 Thread Tyler Smith
Hi, I've modified my bash prompt to display the number of minutes of battery time left. I use the following code in my .bashrc: ## alias bt=acpi | awk '{print \$5}' | awk -F : '{print \$1*60 + \$2}' # set a fancy prompt (non-color, unless we know we want color) case $TERM in xterm)

Re: bash prompt won't wrap properly

2007-04-15 Thread Gerard Robin
On Sun, Apr 15, 2007 at 09:15:52PM +, Tyler Smith wrote: From: Tyler Smith [EMAIL PROTECTED] To: debian-user@lists.debian.org Subject: bash prompt won't wrap properly X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-26) on murphy.debian.org X-Spam-Level: X-Spam-Status: No, score=-1.3

Re: bash prompt won't wrap properly

2007-04-15 Thread Tyler Smith
On 2007-04-15, Gerard Robin [EMAIL PROTECTED] wrote: I encountered the same problem and I solved it adding \]\n[\ in my PS1. my PS1: PS1=${magenta}[\[$TIME\] [EMAIL PROTECTED] \[${BLUE}\]\#\[$NC\]]\w\$ hth. That's interesting. If I put the \n at the end of my prompt it works right. If