PROPHET/OS
NAME
pshell: the shell
SYNOPSIS
pshell [script|selbsttest]
DESCRIPTION
The shell. It runs on every console as a program.
With a file it runs that script and exits.
There are no built-in commands in the kernel: a command is a program on disk, and the shell finds it by looking in /system/bin, /system/sbin and /user/bin. What the shell itself does is the working directory, the streams, the pipes and the expressions. cd without a target, and cd ~ or cd ~/dir, goes to the home of the logged-in user.
The prompt comes out of shell.conf, read in three steps: <home>/.shell.conf before /system/config/shell.conf before the default. The built-in prompt prints the form in force and which of the three steps it came from.
The aliases: /system/config/aliases holds those of every user, a line name value each (gpucc stands for cc --target=sm86); alias sets a user's own in <home>/.pshell/config, which wins over the system's of the same name and is the only one stored.
With gfx cell and prompt_effect gradient|glow|fire|smoke in the same file the shell lets an effect live: promptfx runs beside it and paints it. prompt_effect_on prompt (the default) lays it on the whole prompt until the first key; prompt_effect_on cursor lets it rise from the cursor and follow it, under review until the console is drawn outside the kernel. When the effect ends the console is painted anew. With gfx plain the shell binds no graphics at all. terminal consolev (the default) hands a console to consolev, which draws it in user space with its own cursor; terminal kernel leaves it to the kernel.
EXAMPLE
$ pshell --help pshell [script|selbsttest] the shell. It runs on every console as a program. With a file it runs that script and exits.