LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Thread Tools
Old 11-15-2009, 03:49 AM   #1
guyafe
LQ Newbie
 
Registered: Nov 2009
Posts: 2
Thanked: 0
Changing prompt in tcsh


[Log in to get rid of this advertisement]
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?

Thanks
Guy Yafe
windows_xp_2003 guyafe is offline     Reply With Quote
Old 11-15-2009, 02:29 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Fedora, FreeBSD
Posts: 2,386
Thanked: 81
Which OS / version, exactly? ("Redhat" is not descriptive enough.)

First, check some tcsh prompt examples.

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.
macos anomie is offline     Reply With Quote
Old 11-18-2009, 02:59 AM   #3
guyafe
LQ Newbie
 
Registered: Nov 2009
Posts: 2
Thanked: 0

Original Poster
After printing /etc/issue
I got
Quote:
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.

Guy
windows_xp_2003 guyafe is offline     Reply With Quote
Old 11-18-2009, 06:12 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Fedora, FreeBSD
Posts: 2,386
Thanked: 81
From the tcsh(1) manpages on a RHEL4 system:
Code:
       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...
linuxfedora anomie is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the prompt? Ordinary12 Fedora 14 05-23-2007 11:05 PM
tcsh prompt with colors TroelsSmit Linux - Newbie 2 12-20-2004 08:55 AM
changing text colors in tcsh shell leontini Linux - General 1 08-17-2004 03:53 AM
Changing the BASH Prompt Blade_Powers Linux - Newbie 4 03-28-2004 10:21 PM
How to set tcsh prompt: # for root and % for user? robson Linux - Newbie 1 10-12-2003 04:13 PM


All times are GMT -5. The time now is 05:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration