
bsh.commands.getBshPrompt.bsh Maven / Gradle / Ivy
/**
Get the value to display for the bsh interactive prompt.
This command checks for the variable bsh.prompt and uses it if set.
else returns "bsh % "
Remember that you can override bsh commands simply by defining the method
in your namespace. e.g. the following method displays the current working
directory in your prompt:
String getBshPrompt() {
return bsh.cwd + " % ";
}
*/
String getBshPrompt()
{
if ( bsh != void && bsh.prompt != void )
return bsh.prompt;
else
return "bsh % ";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy