Re: Change ka...@root prompt?

2010-11-05 Thread Guillaume Nodet
The default PROMPT is defined as:

public static final String DEFAULT_PROMPT =
\u001b[1m${user}\u001b...@${application} ;

To change this, you can set the PROMPT variable in
etc/shell.init.script to something that suit your needs better.
Either as a plain variable:
   PROMPT=\u001b[1m${user}\u001b...@${application} ;
Or as a closure
'#PROMPT' = { echo \u001b[1m${user}\u001b...@${application}ww  }

The branding does not currently enable changing the default prompt,
but maybe it could be enhanced.

On Fri, Nov 5, 2010 at 19:29, Kit Plummer kitplum...@gmail.com wrote:

 Is it possible to change the karaf part of the console prompt in
 configuration?

 Kit
 --
 View this message in context: 
 http://karaf.922171.n3.nabble.com/Change-karaf-root-prompt-tp184p184.html
 Sent from the Karaf - User mailing list archive at Nabble.com.




-- 
Cheers,
Guillaume Nodet

Blog: http://gnodet.blogspot.com/

Open Source SOA
http://fusesource.com


Re: Change ka...@root prompt?

2010-11-05 Thread Guillaume Nodet
You're right.  The correct value for karaf 2.1.0 would be:

PROMPT= '\u001b\\[1m${user}\u001b\\...@${application} ';

Though the value I provided will work on 2.2.0 (trunk for now).

On Fri, Nov 5, 2010 at 21:15, Mike Van mvangeert...@comcast.net wrote:



 Guillaume,



 Are you sure that's correct? I added:

 PROMPT=\u001b[1m${user}\u001b...@${application} ;

 to my shell.init.script file, and I received the following error in the 
 console:

 Error in initialization script: Eof found in the middle of a compound for 
 '][', begins at b...@${application}



 v/r,



 Mike Van


 - Original Message -
 From: Guillaume Nodet [via Karaf] 
 ml-node+1850211-615221409-228...@n3.nabble.com
 To: Mike Van mvangeert...@comcast.net
 Sent: Friday, November 5, 2010 3:07:07 PM
 Subject: Re: Change ka...@root prompt?

 The default PROMPT is defined as:

     public static final String DEFAULT_PROMPT =
 \u001b[1m${user}\u001b...@${application} ;

 To change this, you can set the PROMPT variable in
 etc/shell.init.script to something that suit your needs better.
 Either as a plain variable:
    PROMPT=\u001b[1m${user}\u001b...@${application} ;
 Or as a closure
     '#PROMPT' = { echo \u001b[1m${user}\u001b...@${application}ww  }

 The branding does not currently enable changing the default prompt,
 but maybe it could be enhanced.

 On Fri, Nov 5, 2010 at 19:29, Kit Plummer  [hidden email]  wrote:

 Is it possible to change the karaf part of the console prompt in
 configuration?

 Kit
 --
 View this message in context: 
 http://karaf.922171.n3.nabble.com/Change-karaf-root-prompt-tp184p184.html
 Sent from the Karaf - User mailing list archive at Nabble.com.




 --
 Cheers,
 Guillaume Nodet
 
 Blog: http://gnodet.blogspot.com/
 
 Open Source SOA
 http://fusesource.com






 View message @ 
 http://karaf.922171.n3.nabble.com/Change-karaf-root-prompt-tp184p1850211.html
 To start a new topic under Karaf - User, email 
 ml-node+930749-917263437-228...@n3.nabble.com
 To unsubscribe from Karaf - User, click here .

 --
 View this message in context: 
 http://karaf.922171.n3.nabble.com/Change-karaf-root-prompt-tp184p1850561.html
 Sent from the Karaf - User mailing list archive at Nabble.com.




-- 
Cheers,
Guillaume Nodet

Blog: http://gnodet.blogspot.com/

Open Source SOA
http://fusesource.com