"Menu Prompt" for Naive Users
Some people don't want to be faced with a UNIX %
or $
shell prompt. If you usually run only a few particular UNIX commands, you can put those command names in the shell prompt. Here's a simple one-line Bourne shell prompt for a profile:
PS1="type "rn", "mailx", "wp", or "logout": "
Next, a multiline prompt () for the C shell cshrc file:
($?prompt) |
if ($?prompt) then set prompt="\\ type "rn" to read the news,\\ type "mailx" to read and send mail,\\ type "wp" for word processing, or\\ type "logout" to log out.\\ yes, master? " endif |
---|
You get the idea.
- JP