Red Hat Bugzilla – Bug 141782
Want special prompt for root when using (t)csh
Last modified: 2014-03-16 22:51:01 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Description of problem:
After upgrading to Fedora Core 3, I no longer get a special prompt
when I log in as root, and the user is configured with /bin/tcsh as
shell - I get the same setting as a regular tcsh user. Provided that
none of the users have set up custom prompts in .cshrc or similar, of
Yeah, I know - the user name is actually displayed in the prompt, but
I'd still like something more distinct, or should I say more familiar,
for root (I'm getting confused without it.)
'[%n@%m %c]# '
for root where the default for other users is
'[%n@%m %c]$ '
Version-Release number of selected component (if applicable):
Did this work in any previous release (from your first comment, I'm
OK I wasn't very clear here, and I also somehow got the impression
that there had been a change to the default prompt since, but now I
think that this is just something that has stopped working... I also
seemed to recall that a special test in the common startup files used
to make sure the root prompt was set up correctly, but again I was wrong.
The situation is this:
With Red Hat Linux 9, and I believe also Fedora Core 1 and 2, root
gets a special prompt simply because /root/.tcshrc installed by the
"rootfiles" package has the line
set prompt='[%n@%m %c]# '
In the Fedora core version, there is no such line.
Fixed in rootfiles-8.1-1