Re: PS1 in .bashrc

2003-07-14 Thread Robin Gerard
On Sun, Jul 13, 2003 at 08:21:34PM +0200, Sebastian Kapfer wrote: > On Sun, 13 Jul 2003 19:30:10 +0200, Robin Gerard wrote: Thanks. PS1="${cyan}[$TIME [EMAIL PROTECTED] \[${YELLOW}\#$NC\]] \[\w\$ " did the trick. -- Gerard -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "uns

Re: PS1 in .bashrc

2003-07-13 Thread Sebastian Kapfer
On Sun, 13 Jul 2003 19:30:10 +0200, Robin Gerard wrote: > with this PS1 I get: > > [18:31 : 0.16] > [EMAIL PROTECTED] 1] ~$ > > but if I write a very long command the cursor remains on the same line and > overlaps the prompt. >From "man bash": > \[ begin a sequence of non‐printing chara

PS1 in .bashrc

2003-07-13 Thread Robin Gerard
Hello, I encountered a trifling problem in my .bashrc: . . # Define some colors: RED='\e[1;31m' cyan='\e[0;36m' CYAN='\e[1;36m' YELLOW='\e[1;33m' NC='\e[0m' # No Color ...