roger@rtech.UUCP (Roger Rohrbach) (01/04/86)
Enclosed is a script which will produce a file called `eddie', which will cause your boring, old shell prompt to be replaced by a new one named "ready eddie". eddie was born on a PR1ME computer, whose command language provides for two prompt strings, the normal ("ready") prompt, and another ("error") prompt that is displayed after a command has failed (Unix approx. "exits with a non-zero status"). eddie normally wore a placid expression: {o >o \ -) -yes? Which changed to a quizzical one after a mistake was made: {o >o \ ~) -huh? On Unix, eddie is blase; you can `rm /' and he won't bat an eye. Just cut out the script, put it in a file, make it executable, and run it, naming your brand of shell if it's different than $SHELL. (enclosure) --------------------------------cut-here--------------------------------------- : # "ready-eddie" (c) 1986 case ${1-"$SHELL"} in *csh) command='set prompt = "{o >o\ \ -) yes? "' file=".login" include="source" ;; *) command='PS1="{o >o \ -) yes? "' file=".profile" include='.' ;; esac echo "$command" > eddie echo " Now just add the contents of the file \`eddie' to your \`$file', or type \`$include eddie' to try eddie. "