Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi,
I am trying to change the propmpt in tcsh in Redhat.
I did all the following:
In ~/.cshrc I added at the end of the file the new prompt.
Copied csh.cshrc and csh.login to ~/ and added the new prompt at the end of both of them.
I get the new prompt every time I open a terminal window, but the minute I am changing a directory, I get the old prompt again.
Can you tell me where else I should change the prompt?
Next, read the tcsh(1) manpages for your OS / version, and confirm that ~/.cshrc is read at shell startup (as opposed to, say, ~/.tcshrc) -- and in what order.
Red Hat Enterprise Linux ES release 4 (Nahant Update 2)
I couldn't find anything in the manual that could solve the problem.
I don't have ~/.tcshrc, only ~/.chrc. I tried changing the latter to .tcshrc, and also didn't work.
A login shell begins by executing commands from the system files
/etc/csh.cshrc and /etc/csh.login. It then executes commands from
files in the user’s home directory: first ~/.tcshrc (+) or, if
~/.tcshrc is not found, ~/.cshrc, then ~/.history (or the value of the
histfile shell variable), then ~/.login, and finally ~/.cshdirs (or
the value of the dirsfile shell variable) (+).
If you're sure you have the file named correctly (it's misspelled in your last post), then post its contents here...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.