How to delete Terminal script

Discussion in 'Mac Programming' started by IlyaKamens, Jul 25, 2011.

  1. IlyaKamens macrumors newbie

    Joined:
    Jul 25, 2011
    #1
    Hi,

    A while ago, I wrote a Terminal script that executes "cd Desktop" every time I start Terminal.

    With the release of Lion, this is no longer necessary as Terminal remembers where I last left off. I can't figure out how to disable/delete the script because I can't find it. There are also no options in the Terminal preferences that can help me. Does anyone have an idea as to how I might be able to disable/delete this script?

    Thank you,
    Ilya
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    In the Terminal preferences, on the Settings tab, there's a text field for a command to run when starting up. This may be where you placed it.

    Also check in your home directory if you have anything in your .profile or .bash_profile (you may have neither file) that might be running it.
     
  3. IlyaKamens thread starter macrumors newbie

    Joined:
    Jul 25, 2011
    #3
    I am an idiot, and you are awesome. Thanks a bunch!

    Ilya
     
  4. MacUser2525 macrumors 68000

    MacUser2525

    Joined:
    Mar 17, 2007
    Location:
    Canada
    #4
    Perhaps an execution call to it in your .bashrc, .bash_aliases, .bash_profile those are the normal *nix files read on every login which is what a new start of Terminal would be.
     

Share This Page