home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 June
/
PCWorld_2007-06_cd.bin
/
multimedia
/
ppsee
/
PPSeeSetup.exe
/
lib
/
bsh-commands-2.0b4.jar
/
bsh
/
commands
/
getBshPrompt.bsh
< prev
next >
Wrap
Text File
|
2005-05-23
|
532b
|
25 lines
/**
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 % "
<p/>
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:
<p/>
<pre>
String getBshPrompt() {
return bsh.cwd + " % ";
}
</pre>
*/
String getBshPrompt()
{
if ( bsh != void && bsh.prompt != void )
return bsh.prompt;
else
return "bsh % ";
}