Where is the .login file???

Discussion in 'Mac Programming' started by psionicsin, Jul 31, 2013.

  1. psionicsin macrumors 6502


    Dec 6, 2011
    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?
  2. willic3 macrumors newbie

    Jul 31, 2013
    New Zealand
    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.
  3. ratsg macrumors 6502

    Dec 6, 2010
    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

Share This Page