New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.4 - missing .tcshrc file


Post Reply New Thread Subscribe

 
Thread Tools
boletje

 
Member Since: Jul 14, 2006
Posts: 29
boletje is on a distinguished road

boletje is offline
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
QUOTE Thanks
novicew

 
novicew's Avatar
 
Member Since: Jan 04, 2006
Location: Hamburg, Germany
Posts: 1,385
novicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to all
Mac Specs: MacBook Pro | iMac(2.1 G5) | MacBook(2.16 C2D) | MacMini (1.67 CD) | iPhone 4 | iPad (3rd Gen)

novicew is offline
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).
QUOTE Thanks
mathogre

 
mathogre's Avatar
 
Member Since: Jan 20, 2007
Location: Oakton, VA USA
Posts: 3,269
mathogre has a brilliant futuremathogre has a brilliant futuremathogre has a brilliant futuremathogre has a brilliant futuremathogre has a brilliant futuremathogre has a brilliant futuremathogre has a brilliant futuremathogre has a brilliant futuremathogre has a brilliant futuremathogre has a brilliant futuremathogre has a brilliant future
Mac Specs: White MacBook Intel C2D 2.2GHz, 2G, 250G, SD, Leopard.

mathogre is offline
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.

PATH="$PATH:/opt/local/bin"
PATH="$PATHHOME/scripts"
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

bash

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.
QUOTE Thanks

Post Reply New Thread Subscribe


« Buy MB with Tiger now or wait until Leopard? | how to run MAC OS X? HELP PLEASE »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
missing index.xml file in Pages -- HELP! cfhosford@earth OS X - Apps and Games 1 01-05-2010 03:29 PM
iDisk missing space, help. Extrange file: .filler.idsff ppuga OS X - Apps and Games 1 01-25-2009 10:17 PM
Missing File radioactiveman OS X - Operating System 3 07-27-2006 03:41 PM
Not too pleased with new iMac JunMacTech Apple Desktops 14 12-05-2005 08:13 PM
Can you guys open this site? Desolate One OS X - Apps and Games 13 04-29-2005 02:23 PM

All times are GMT -4. The time now is 04:43 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?