Why Sponsor Oils? | source | all docs for version 0.20.0 | all versions | oilshell.org
Warning: Work in progress! Leave feedback on Zulip or Github if you'd like this doc to be updated.
This chapter in the Oils Reference describes extension points for OSH and YSH
TODO
TODO
First line of a prompt.
Second line of a prompt.
For the 'select' builtin (unimplemented).
For 'set -o xtrace'. The leading character is special.
Users may define this func to customize their prompt.
The func should take the global value.IO
instance, and return a prompt string
(type value.Str
).
To construct the prompt, it can make calls like
io->promptVal('$')
.
To render the prompt, YSH first checks if this function exists. Otherwise, it
uses $PS1
with a ysh
prefix.