csh shell read .tshrc rather than .cshrc startup file

50 Views Asked by At

I use csh shell ($ echo shell -> /bin/csh) and this time I added a environment variable $path to .csh file. However, every time when log in I need to source the .cshrc file to make this environment variable "activate" and appear after inputing "echo $PATH".

Then I try to set the environment variable in .tcshrc file, it works. Why?

My shell is CSH, so in principle should be work when environment variables is set in the .cshrc file.

If I am excuting .tcsh file rather than .csh file, how to make my csh shell run .csh file?

My OS: CentOS7

0

There are 0 best solutions below