[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bash Prompt and Color
Hello,
I was recently playing around with my bash prompt and PS1 variable. I
changed my ~/.bashrc to:
if [ "$TERM" = "linux" ]
then
#we're on the system console or maybe telnetting in
export PS1="[\w]\n[\u@\H]\$ "
else
#we're not on the console, assume an xterm
export PS1='\e[31:m[\w] \@\n\e[34:m[\u@\H]\$\e[0m '
fi
Does anyone know why, when I have an xterm, the cursor stays red? The
site that helped me customize it said that \e[0m would change it back
(at least thats how I understood it when I read it).
Thanks
Mark Thurman
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.