Changing the prompt in C shell
Ed Pate
epate at unf7.UUCP
Mon Mar 26 19:45:26 AEST 1990
The prompt characters in standard Sys V are controlled by the shell variables
PS1 and PS2. By placing them in your .profile file, you may set them at login or you may set them at anytime from the shell.
.profile:
PS1='abcd >'
PS1=$LOGNAME
or any other thing you would care to do with a shell variable. You must remember to export the variable or it won't show the change.
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)
More information about the Comp.unix.i386
mailing list