Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Custom prompt(Changing the default Equinox console prompt)
Custom prompt [message #1696087] Thu, 21 May 2015 15:39 Go to next message
Emilio Nunez is currently offline Emilio NunezFriend
Messages: 2
Registered: May 2015
Junior Member
Hi. I'd like to know if it's possible to customize the command prompt in the Equinox command console (change 'osgi>' with a different text).

We are using Equinox 3.9.1 (Kepler) as a standalone OSGi container.

Thanks a lot.

Best regards,
Emilio
Re: Custom prompt [message #1696332 is a reply to message #1696087] Mon, 25 May 2015 18:38 Go to previous message
Emilio Nunez is currently offline Emilio NunezFriend
Messages: 2
Registered: May 2015
Junior Member
Hi again.

After a bit of research I've got it. In case anyone is interested, this is how I've fixed it:

1) Define a system variable 'gosh.home' set to any directory you want (e.g. /projects/foo)

2) Inside this directory it's needed to create another directory called 'etc' which contains a file named 'gosh_profile':

/projects/foo/
/etc/
gosh_profile

This file has a defined format. It's easy to find examples searching in the net (you can also find it into the plugin 'org.apache.felix.gogo.shell_xxxxxx.jar') . According to the comment at the beginning of the file:

# only read if etc/gosh_profile doesn't exist relative to the System property
# gosh.home or failing that the current directory.

One of the parameters defined states the console prompt:

prompt = 'osgi> '

All I had to do is set this parameter to the desired value. After restating Equinox changes took effect.

Hope this helps.

Greetings!
Previous Topic:Log of equinox
Next Topic:how to enable p2 commands in osgi console
Goto Forum:
  


Current Time: Sat Sep 22 16:59:00 GMT 2018

Powered by FUDForum. Page generated in 0.01802 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top