如何在 apache felix gogo 中自定义 OSGi 提示 shell

How to customize OSGi prompt in apache felix gogo shell

我有一个 OSGi 系统 运行 Apache Felix Gogo shell(版本 1.1.2)。

我看到了提示 g!,一切正常。我可以通过例如更改控制台中的提示prompt="myPrompt>".

如何在启动时在我的配置文件 (config.ini) 中配置它?

您可以简单地将启动脚本放在您的工作目录中。/etc/gosh_profile。 在该脚本中,您可以定义提示名称,例如 prompt="myPrompt>".