[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where is Bash Prompt Set??



On Thursday 11 February 2010 11:16:15 John wrote:
> On 11/02/10, Jon Dowland (jmtd@debian.org) wrote:
> | I've never met a bash that displays anything other than '#'
> | for '\$' in PS1. Can you give an example of one that does?
> 
> From .bashrc:
> 
> # root; red
> #export PS1='\[\033[0;31m\u@\w# \]'
> # sid: green
> export PS1='\[\033[0;32m\u@\w$ \]'
> # magenta
> #export PS1='\[\033[0;35m\u@\w$ \]'
> # yellow
> #export PS1='\[\033[0;33m\u@\w$ \]'
> # blue
> #export PS1='\[\033[0;34m\u@\w$ \]'
> # cyan
> #export PS1='\[\033[0;36m\u@\w$ \]'

None of those are examples of what Jon D. requested.  Your example would have 
to use '\$' (not just '$') in PS1.
-- 
Boyd Stephen Smith Jr.           	 ,= ,-_-. =.
bss@iguanasuicide.net            	((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy 	 `-'(. .)`-'
http://iguanasuicide.net/        	     \_/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: