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 > Login script

Login script
Thread Tools
macanada
Junior Member
Join Date: Mar 2001
Location: Rochester, NY, USA
Status: Offline
Reply With Quote
Apr 1, 2001, 04:09 PM
 
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
     
gorgonzola
Admin Emeritus
Join Date: Nov 2000
Location: New Yawk
Status: Offline
Reply With Quote
Apr 1, 2001, 05:00 PM
 
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)
     
[email protected]
Senior User
Join Date: Oct 2000
Location: oakland, ca usa
Status: Offline
Reply With Quote
Apr 1, 2001, 05:15 PM
 
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...
     
Mactoid
Grizzled Veteran
Join Date: Sep 2000
Location: Springfield, MA
Status: Offline
Reply With Quote
Apr 1, 2001, 07:07 PM
 
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)
     
altoid
Fresh-Faced Recruit
Join Date: Nov 2000
Location: Brooklyn
Status: Offline
Reply With Quote
Apr 1, 2001, 07:41 PM
 
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 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 05:25 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.,