Results 1 to 3 of 3
  1. #1

    Member Since
    Jul 14, 2006
    missing .tcshrc file
    just running through a few terminal tutorials which were pointed out to me. it sks me to edit a hidden file .tcshrc which is located in my home directory...but it isnt there.

    i would like to edit it to add the "-i" command so i can have conformation when deleting, copying and moving files.

    I tried making the file using "touch .tcshrc" and then addin the necessary commands within the file but it didnt work.

    Any of you guys able to help a new guy out?

    thanks in advance

  2. #2

    novicew's Avatar
    Member Since
    Jan 04, 2006
    Hamburg, Germany
    MacBook Pro | iMac(2.1 G5) | MacBook(2.16 C2D) | MacMini (1.67 CD) | iPhone 4 | iPad (3rd Gen)
    This is the profile file for a type of shell (Tcsh). In Macs, you get Bash Shell by default. The corresponding profile is saved in ".bash_profile". This is the file equivalent to .tcshrc created by Tcsh shell (improved version of the Berkeley UNIX C shell (csh))

    In *nix you have the possibility to select different types of shells. Once you select a one, it will create a corresponding profile in your home directory, the first time you open the shell (Terminal). Therefore whatever the additions/changes have to be made to the currently active shell profile.

    For editing, try Vim. It looks complicated in the beginning, but once you started using it, you don't want to have another editor (at least it is the case for me).

  3. #3

    mathogre's Avatar
    Member Since
    Jan 20, 2007
    Oakton, VA USA
    White MacBook Intel C2D 2.2GHz, 2G, 250G, SD, Leopard.
    Here's a variation on what novicew said.

    I have three files that I use. My .bashrc controls the basics for using the bash shell. My .bash_profile file establishes path information to tell bash where to look for files when I work at the command line. .alias gives all of my aliases, and is generic to work with any shell, generally speaking.

    Here are a couple key lines in my .bashrc file.

    source .bash_profile
    source .alias

    Here's some content from my .bash_profile file. You probably wouldn't need this file unless you start doing more "unixy" things.

    export PATH

    Finally, here are a couple entries for a .alias file. The first is in mine; the second is one I tested that should work for you.

    alias md5sum="md5"
    alias rm="rm -i"

    To activate all of this when running a terminal or an xterm (if you're running X11), enter


    at the command line. It will activate your .bashrc file, which will then activate your .bash_profile and .alias files.

    Finally, just to ensure there's no confusion, these things work at the command line only. If you try to delete something through the Finder, you'll be subject to its operation. For instance, if you have Finder set to delete things immediately as they're placed into the trash can (if it's even possible), they will be deleted regardless of what you have in your dot files (.alias et al).

    Hope this helps!
    Evil Math Ogre Kgh-Ra
    Integrate me. Differentiate me.
    You can't hurt me. I'm e^x. Ha ha ha!

    Homepage | Gallery
    I was on the M-F honor roll for July 2007.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. index file missing
    By Gail Hixenbaugh in forum OS X - Operating System
    Replies: 4
    Last Post: 11-26-2013, 11:30 PM
  2. .tcshrc not being executed when terminal opens
    By astropig in forum OS X - Operating System
    Replies: 4
    Last Post: 05-25-2012, 04:32 AM
  3. Missing X11 file
    By teribere216 in forum OS X - Operating System
    Replies: 5
    Last Post: 11-16-2011, 02:54 PM
  4. Missing Photoshop file
    By Shoeboat in forum Images, Graphic Design, and Digital Photography
    Replies: 2
    Last Post: 07-02-2008, 11:06 PM
  5. Missing File
    By radioactiveman in forum OS X - Operating System
    Replies: 3
    Last Post: 07-27-2006, 02:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts