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
Or if I wanted to put in the name of the system I was currently logged in on, I might say:
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: