Author: Aled Treharne
Date: 29-12-03 11:07
I've set a little script up in /etc/csh.cshrc which is the global file that controls all users. It can be overridden by the user's own .cshrc or .tcshrc.
The script itself sets up a prompt with my name, hostname, path (using ~ instead of your home directory where appropriate), the current time and the > or # prompt depending on whether you're root or not. What I did was to make the script set the user@hostname bold if you're root:
#Set the prompt for all users, only make it bolder for root
if ($uid == 0) then
set prompt="%B[root@%m]%b%~ %T %# "
set prompt="[%n@%m]%~ %T %# "