Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Wrong file name & location.' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Wrong file name & location.
Authored by: Loren on Mar 30, '01 06:14:28PM

I followed your directions but had no luck. After getting a Unix guru friend on the phone we figured out that the file needs to be in the home directory, and named .tcshrc

At least, that is what worked for me.

Loren



[ Reply to This | # ]
Wrong file name & location.
Authored by: Anonymous on Mar 31, '01 02:53:22AM

Indeed you can create a file called ".tcshrc" in your home directory... but that is a very Unixy way. Reading the instructions from the Global alias file, the directory that I mentioned in the article is the preferred method (I guess they don't want you to litter your home directory with "." files?). Perhaps something that I didn't make clear in the article (read: I forgot to mention :-) is the meaning of the '~' in the path. It basically translates to you home folder, ie. the file path ends up as:

~/Library/init/tcsh/aliases.mine

actually expands out to:

/Users/myName/Library/init/tcsh/aliases.mine

That definately works, my machine is configured to that exactly. Again either location and file name is correct and will get you aliases working. Hope you are enjoying the shortcuts :)

Sorry for the confusion

L8r
Dave



[ Reply to This | # ]
Wrong file name & location.
Authored by: iMike on Mar 31, '01 07:40:07AM
Both methods will work (as Dave mentioned). However, the more correct and
less tainted method for creating aliases is to create the "aliases.mine" file
inside ~/Library/init/tcsh/ (as mentioned by Dave).

Just thought I would reiterate that info. Loren, use this method for aliases and
use your .tcshrc file for changing your prompt. You can also add .login and
.logout files to your home directory to change your shell login and logout info. 8^)

iMike

[ Reply to This | # ]
Wrong file name & location.
Authored by: Anonymous on Mar 31, '01 08:19:07PM

Actually, you can do it all in the ~/Library/init/tcsh directory. You can set up your login, logout, tcsh defaults, environment, etc. For more info, read the README file in:

/usr/share/init/tcsh


Hope this helps

L8r
Dave



[ Reply to This | # ]
Wrong file name & location.
Authored by: iMike on Apr 12, '01 04:29:56AM
Dave:

Maybe I wasn't clear or you misunderstood, but ~/Library/init/tcsh/ is exactly
where I was saying to setup the .tcshrc, .login, .logout, aliases.mine,
completions.mine, rc.mine, and environment.mine files.

Just to reiterate...you should create and edit the .tcshrc, .login, .logout, aliases.mine,
completions.mine, rc.mine, and environment.mine files in ~/Library/init/tcsh/.

iMike


[ Reply to This | # ]