Simple .tcshrc question

ngcomputing

Registered
I created a .tcshrc file in my ~/user folder that creates an alias like so :

Code:
alias fantom='cd /volumes/fantom/ ; clear; echo Current Directory $PWD ; echo ; echo ;  bash backup.sh'
(The above simply changes to my firewire drive and then uses bash to run backup.sh to zip up my data files.)


Problem is, when I open a new terminal the .tcshrc file is never read, thus the alias is not created.

1) Does the .tcshrc have to be created exclusivly using sudo?

2) Does the .tcshrc have to have certain permissions?

3) Any suggestions on why it won't load?

-----

Many thanks!
 
Hi there,

1) Does the .tcshrc have to be created exclusivly using sudo?
Nope, creating it from your own acount will be fine.

2) Does the .tcshrc have to have certain permissions?
As long as it's readable by you (i.e. mode 400 minimum).

3) Any suggestions on why it won't load?
There should be a space, not an equals sign, between the alias name and action:

Code:
alias action 'cd /Volumes......'

Hope that helps!

- Brian
 
Back
Top