Where is the .login file???

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

  1. macrumors member

    psionicsin

    Joined:
    Dec 6, 2011
    Location:
    Ann Arbor, MI
    #1
    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. macrumors newbie

    Joined:
    Jul 31, 2013
    Location:
    New Zealand
    #2
    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. macrumors 6502

    Joined:
    Dec 6, 2010
    #3
    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