Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Restore .cshrc globally' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Restore .cshrc globally
Authored by: carsten on Aug 29, '02 09:23:20PM
The init.tcsh files were removed from their' old location (presumably) to keep in sync with other BSD implementations; this is a good thing. The real problem however, is with the csh initialization files in /etc, it looks like someone at Apple accidentally included the wrong /etc/csh.* files from a very old version of Darwin--either that or a very rash decision was made which breaks everyone's default shell and counters the decision to move the shell init files in the first place! ;-P If you did a clean install over top of an existing 10.1.5 installation, you can copy the three csh files from your "/Previous Systems/Previous System 1/private/etc" directory into /private/etc, replacing the ones which came with Jaguar. Alternatively you can run these commands in the terminal: (the first 2 lines just make a backup, if for some unique reason you want the Jaguar defaults back again) sudo mkdir /etc/csh-jaguar-defaults/ sudo cp -i /etc/csh.* /etc/csh-jaguar-defaults/ sudo sh -c 'echo "source /usr/share/tcsh/examples/rc" > /etc/csh.cshrc' sudo sh -c 'echo "source /usr/share/tcsh/examples/login" > /etc/csh.login' sudo sh -c 'echo "source /usr/share/tcsh/examples/logout" > /etc/csh.logout' If you use both a .cshrc and a .tcshrc, you might have to include an extra line in your .tcshrc to get both to work properly (I think tcsh is supposed to use both rc files since tcsh is considered a "c shell", but it doesn't use .cshrc anymore on my system since upgrading to Jaguar): source ~/.cshrc

[ Reply to This | # ]