PS1 PROMPT

PS1 and PROMPT should be set to a text string which is printed each time a shell is waiting for input.

The text string will be expanded via parameter expansion, and shell script parsing and commands encoded inside the string will be parsed and executed.

Bash and zsh both have expansion characters that can show shell status (directory, time, history number etc). Expandable shell characters are explained by reading the shell manual.

However, this means that the prompt has to be rewritten to be used on other shells, and since bashish aims to be usabable on other shells than bash, the module themecompat has been written.

``themecompat'' provides a common subset of the special expandable characters in zsh, bash and ksh. It should be sufficient for simple themes, but may not be enough for complicated zsh prompts. Consult the bash or zsh manual for more info on which expandable characters are avaliable.



Thomas Eriksson 2004-06-23