The prompt displayed by your shell is contained in a called prompt in the C shell and PS1 in the Bourne shell. As such, it can be set like any other shell variable. [bash and tcsh have plenty of extra features for those two variables. There are examples in later articles. -JP]
set prompt="tim % "
(It's helpful to leave the
% at the end so that it remains obvious
that this is a C shell.
The space after the
% makes the command you type stand out from the rest
of the prompt.)
Or if I wanted to put in the name of the system I was currently logged in on, I might say:
set prompt="`uname -n` % "
If I wanted to include theI'd say:
set prompt="\! % "
Or if I wanted all three things:
set prompt="tim@`uname -n` \!% "
This will give me a prompt like this: