Changing the prompt in C shell
jeff
jeff at samna.UUCP
Wed Mar 28 03:44:33 AEST 1990
In article <254 at unf7.UUCP> epate at unf7.UUCP (Ed Pate) writes:
>The prompt characters in standard Sys V are controlled by the shell variables
>PS1 and PS2.
>PS1 is the standard prompt and PS2 is the secondary prompt (for when
>you didn;t enter all the required parameters and the program is
>asking for the rest)
I didn't see the original article, but the answers here don't match
the subject. The information given above is applicable to the Bourne
shell NOT the C shell (I don't really know anything about ksh, so I
don't know whether it applies there or not).
The C shell uses:
set prompt="<Your prompt here>"
If you want it to be active for all instances of the C shell, the
set statement should go in $HOME/.cshrc
Jeff
More information about the Comp.unix.i386
mailing list