osgiapache-felixgogo-shell

How to customize OSGi prompt in apache felix gogo shell


I have an OSGi system running with Apache Felix Gogo shell (version 1.1.2).

I see the prompt g! and everything works fine. I can change the prompt in the console by e.g. prompt="myPrompt>".

How can I have this at start up, configured in my config file (config.ini)?


Solution

  • You could simply put a startup script in your working directory ./etc/gosh_profile. In that script you can define the prompt name like prompt="myPrompt>".