Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > X11 terminal and iTerm won't run .cshrc

X11 terminal and iTerm won't run .cshrc
Thread Tools
Phat Bastard
Mac Enthusiast
Join Date: Apr 2001
Location: Toronto, Ontario, Canada
Status: Offline
Reply With Quote
Feb 22, 2004, 01:32 PM
 
I can't figure out how to get X11 terminal or iTerm to run .login/.cshrc when starting a new terminal window. I'm always running .cshrc myself and it's really annoying. My .login file simply contains "source .cshrc", and my .cshrc has all my paths, environment variables, etc etc. But neither file is run by the X11 terminal or iTerm, although things work fine with the default OS X Terminal. Am I missing something here?

Thanks for your help in advance.
The world needs more Canada.
PB 12" 867 MHz, 640 MB RAM, AE, OS 10.4.2
Black iPod nano 4GB
     
Moonray
Mac Elite
Join Date: May 2001
Status: Offline
Reply With Quote
Feb 22, 2004, 05:36 PM
 
The help is probable here:

http://www.misplaced.net/fom/X11/36.html

-
     
Phat Bastard  (op)
Mac Enthusiast
Join Date: Apr 2001
Location: Toronto, Ontario, Canada
Status: Offline
Reply With Quote
Feb 22, 2004, 08:48 PM
 
I created the environment.plist file as they suggested (the contents of the file are exactly what they had, with my home dir changed of course), and this fixes iTerm (it finds and runs .cshrc correctly) but X11 terminal still won't do it. Is something extra required?

Originally posted by Moonray:
The help is probable here:

http://www.misplaced.net/fom/X11/36.html

-
The world needs more Canada.
PB 12" 867 MHz, 640 MB RAM, AE, OS 10.4.2
Black iPod nano 4GB
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Feb 23, 2004, 07:58 PM
 
Originally posted by Phat Bastard:
I created the environment.plist file as they suggested (the contents of the file are exactly what they had, with my home dir changed of course), and this fixes iTerm (it finds and runs .cshrc correctly) but X11 terminal still won't do it. Is something extra required?
So you're sure that you're not running bash, right?
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Phat Bastard  (op)
Mac Enthusiast
Join Date: Apr 2001
Location: Toronto, Ontario, Canada
Status: Offline
Reply With Quote
Feb 23, 2004, 11:06 PM
 
Is this supposed to be sarcastic? No, I am not running bash.

Originally posted by [APi]TheMan:
So you're sure that you're not running bash, right?
The world needs more Canada.
PB 12" 867 MHz, 640 MB RAM, AE, OS 10.4.2
Black iPod nano 4GB
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Feb 24, 2004, 12:33 PM
 
tcsh runs .cshrc only if there is no .tcshrc-files around (as in no .tcshrc anywhere. Check /etc and whereever tcsh hides its pref files these days. Some installer may have created one) .login is run only if the shell is a login-shell, which X11s xterms are not, by default. There is a switch to start them this way, it's -ls or something. See the man-file.
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Feb 25, 2004, 06:09 PM
 
Originally posted by Phat Bastard:
Is this supposed to be sarcastic? No, I am not running bash.
This was not a sarcastic thread, therefore my reply was not sarcastic. I'm not intentionally rude/undermining to users here on MacNN...

I responded asking you to make sure you weren't running bash because 1) You were expecting .login or .cshrc to be run and bash won't read those. And 2) because in the future when someone stumbles upon this thread trying to solve a problem, that's a check that would be relevant and helpful.

"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
asidrane
Junior Member
Join Date: Jun 2001
Status: Offline
Reply With Quote
Mar 5, 2004, 07:04 AM
 
Not to mention the fact that bash now seems to be the defaul shell in panther
     
   
Thread Tools
 
Forum Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 11:59 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,