Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
.tcshrc not being executed when terminal opens
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="valiant66" data-source="post: 1408294"><p><strong>Grr. Fix it myself.</strong></p><p></p><p>OK. I don't know what got screwed up over the various upgrades (the primary reason I use tcsh rather than any other shell is that it was the default in Mac OS X 10.2 when I started using Terminal, and I'm too lazy to change) but here's information for anyone else who ends up here.</p><p></p><p>This is the tcsh login files in load order and where they are located in the file system:</p><p></p><p>[CODE]</p><p>Login files in order:</p><p>Order File When? </p><p>1. /etc/csh.cshrc always </p><p>1. /etc/csh.login login shell </p><p>3. ~/.tcshrc</p><p> or ~/.cshrc always </p><p>3. ~/.history</p><p> or $histfile login shell </p><p>3. ~/.login login shell </p><p>3. ~/.cshdirs</p><p> or $dirsfile login shell </p><p>The order of /etc/csh.login and /etc/csh.cshrc may be reversed. </p><p>The order of ~/.login and ~/.tcshrc, ~/.cshrc and ~/.history may be reversed.</p><p></p><p>Logout files in order:</p><p>Order File When?</p><p>1. ~/.logout logout shell </p><p>2. /etc/csh.logout logout shell</p><p>[/CODE]</p><p></p><p>It seems all the old example location files have been deprecated, as have files in /usr, /usr/etc /usr/share/examples and so on.</p><p></p><p>Notice the "may be reversed" language. That means items numbered 1 might load in one order one time or another the next. Items numbered 3 might load in various orders variously also.</p><p></p><p>I hope this helps somebody else figure out where to put their shell customizing code. I personally am leaving csh.cshrc and csh.login alone and putting my code into ~/.login. Bash has its own .bash_login file, so there's no conflict there. And I have deleted my .tcshrc files since they seem to be ignored, and I won't have to worry about which settings file loads first.</p><p></p><p>No doubt this will work just fine until Mountain Lion overwrites all the default files and I have to start from scratch again...</p><p></p><p>(Oh, and gsahli, I don't know what the ~/.profile file is for or when it loads. I'm ignoring it.)</p><p></p><p>Excelsior!</p></blockquote><p></p>
[QUOTE="valiant66, post: 1408294"] [b]Grr. Fix it myself.[/b] OK. I don't know what got screwed up over the various upgrades (the primary reason I use tcsh rather than any other shell is that it was the default in Mac OS X 10.2 when I started using Terminal, and I'm too lazy to change) but here's information for anyone else who ends up here. This is the tcsh login files in load order and where they are located in the file system: [CODE] Login files in order: Order File When? 1. /etc/csh.cshrc always 1. /etc/csh.login login shell 3. ~/.tcshrc or ~/.cshrc always 3. ~/.history or $histfile login shell 3. ~/.login login shell 3. ~/.cshdirs or $dirsfile login shell The order of /etc/csh.login and /etc/csh.cshrc may be reversed. The order of ~/.login and ~/.tcshrc, ~/.cshrc and ~/.history may be reversed. Logout files in order: Order File When? 1. ~/.logout logout shell 2. /etc/csh.logout logout shell [/CODE] It seems all the old example location files have been deprecated, as have files in /usr, /usr/etc /usr/share/examples and so on. Notice the "may be reversed" language. That means items numbered 1 might load in one order one time or another the next. Items numbered 3 might load in various orders variously also. I hope this helps somebody else figure out where to put their shell customizing code. I personally am leaving csh.cshrc and csh.login alone and putting my code into ~/.login. Bash has its own .bash_login file, so there's no conflict there. And I have deleted my .tcshrc files since they seem to be ignored, and I won't have to worry about which settings file loads first. No doubt this will work just fine until Mountain Lion overwrites all the default files and I have to start from scratch again... (Oh, and gsahli, I don't know what the ~/.profile file is for or when it loads. I'm ignoring it.) Excelsior! [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
Apple Computing Products:
macOS - Operating System
.tcshrc not being executed when terminal opens
Top