PDA

View Full Version : Where is the .login file???




psionicsin
Jul 31, 2013, 06:38 PM
I have a piece of software that's asking me to add a line of code:

source program_setup

To my .login file. However for the LIFE of me I cannot find my .login file.

I'm running 10.8.4. What am I missing?



willic3
Jul 31, 2013, 08:28 PM
I have a piece of software that's asking me to add a line of code:

source program_setup

To my .login file. However for the LIFE of me I cannot find my .login file.

I'm running 10.8.4. What am I missing?

I would be surprised if you have a .login file, since I'm not sure bash will use it (I think bash should still be the default shell in 10.8.4). You may want to create a .bash_login file if you don't already have one. To see, open up a terminal (you should already be in your home directory), then type the following:

ls -al | grep login

If you see a .bash_login file, you can edit that. Otherwise you will need to create one.

ratsg
Jul 31, 2013, 09:01 PM
Whether you have a .login file may depend what shell you use.

As a previous poster had commented, if you are using bash, you probably have a .bashrc file.

If you are using C shell (tcsh on OS X), you probably have either a .cshrc and/or a .tcshrc file.

One of theses files is where your environmental variable should go, depending on your shell.

The .login file is associated with the tcsh shell on OS X, and even if you are using tcsh, you may not have one.

I hope this helps