|
|
Login script
|
|
|
|
Junior Member
Join Date: Mar 2001
Location: Rochester, NY, USA
Status:
Offline
|
|
Does anybody know where the login script is located?
The ~/.tcsh, ~/.login and stuff like that?
Or do I have to start and create one myself?
Chad Taylor
|
Chad Taylor
|
|
|
|
|
|
|
|
Admin Emeritus
Join Date: Nov 2000
Location: New Yawk
Status:
Offline
|
|
Moving to OS X Usage & Support. Click through to find your thread.
thanks
------------------
the oddball newsletter
------------------
it's only after you lose everything that you're free to do anything
|
"Do not be too positive about things. You may be in error." (C. F. Lawlor, The Mixicologist)
|
|
|
|
|
|
|
|
Senior User
Join Date: Oct 2000
Location: oakland, ca usa
Status:
Offline
|
|
i'm using .tschrc in my login dir to store environment changes and aliases...i created it. read a til or somesuch to the effect. .alias woould not work properly...
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Sep 2000
Location: Springfield, MA
Status:
Offline
|
|
OS X doesn't ship with any shell login scripts in your home directory. However, there are global login scripts that it executes. The first ones that execute are the "/etc/csh.login" and "/etc/csh".cshrc scripts. However, if you loook in those, then you will see that all they do is execute their equivalents in "/usr/share/init/tcsh/". The files there are where a bunch of stuff is done.
Those files are all global to all users, but they will also look for and run and personal login files in ~/Library/init/tcsh/" if you make them.
After all that, the "~/.cshrc" and "~/.login" files will be executed.
Does anyone know why Apple made this so complicated. What is wrong with simply having 2 files? global settings in "/etc/csh.login", personal ones in "~/.login". But whatever, that 's how it works, as far as i know.
|
We hope your rules and wisdom choke you / Now we are one in everlasting peace
-- Radiohead, Exit Music (for a film)
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Nov 2000
Location: Brooklyn
Status:
Offline
|
|
I found some helpful info in the README that resides in the directory w/ all the login/environment stuff. Try
%> more /usr/share/init/tcsh/readme
I followed the instructions there and made a file called aliases.mine and completions.mine in ~/Library/init/tcsh/
If you look at the scripts in /usr/share/init/tcsh/ you can see they look for those files and execute them if they exist.
As to why Apple made it so hard.... good question.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|