Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rtech.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!pyramid!nsc!amdahl!rtech!roger From: roger@rtech.UUCP (Roger Rohrbach) Newsgroups: net.sources,net.unix Subject: "ready eddie" Shell prompt :-) Message-ID: <821@rtech.UUCP> Date: Sat, 4-Jan-86 04:40:15 EST Article-I.D.: rtech.821 Posted: Sat Jan 4 04:40:15 1986 Date-Received: Mon, 6-Jan-86 03:28:02 EST Distribution: net Organization: Relational Technology, Alameda CA Lines: 48 Xref: watmath net.sources:4063 net.unix:6759 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. "