Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

psionicsin

macrumors 6502
Original poster
Dec 6, 2011
281
119
Metro-Detroit, MI
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

macrumors newbie
Jul 31, 2013
1
0
New Zealand
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

macrumors 6502
Dec 6, 2010
382
29
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.