Back in my days with Sun computers when I was using a .env.private file (k-shell I think). I used to change this file with new aliases or whatever and then I could just type . .env.private and it would run the file and the new stuff would be active. I don't see how to do this on the Mac... can anyone help me there?
My terminal window says I'm using a tcsh but I haven't justified why I need a .tcshrc instead of a .cshrc.
For loading the enivronment file use: source .[t]cshrc.
The tcsh is nearly the same as the cshrc. The t representents the Tennex shell, with some enhancers. This say, you can use both files, but the .tcshrc will reads first.
Thanks - sorry to the others here that I wasn't entirely clear... I didn't want to just "run" a .cshrc but re-run it right after some edits. You'd probably have to know ksh to know that SUN . thing. So thanks for the stuff about how to switch shells...but that wasn't my question...
I don't have any clue what the command "sh" is or what it's doing but it just seems to echo everything in my .cshrc but new edits didn't take affect for me. I'm somewhat confused why "man sh" tells me all about BASH but I imagine there's some sort of deep UNIX logic as to why that is.
sh is the original Bourne shell. The /bin/sh on OS X (and linux) is bash, which stands for Bourne Again SHell.
source ~/.cshrc
would be all you need if you are already in the tcsh, or simply open a new terminal window.
zsh is essentially a user-friendly ksh, and is the subject of a bit of evangilism here (I am a convert). ksh is now also available in OS X 10.4.x, if you want it.
<pre>
ls -lF /bin/*sh
-rwxr-xr-x 1 root wheel 568K Dec 13 06:39 /bin/bash*
-r-xr-xr-x 1 root wheel 338K Dec 29 2005 /bin/csh*
-r-xr-xr-x 1 root wheel 875K Dec 29 2005 /bin/ksh*
-r-xr-xr-x 1 root wheel 568K Dec 13 06:39 /bin/sh*
-r-xr-xr-x 1 root wheel 338K Dec 29 2005 /bin/tcsh*
-rwxr-xr-x 2 root wheel 492K Mar 2 2006 /bin/zsh*
This thread has been closed by the system or the community team.
You may vote for any posts you find helpful, or search the Community for additional answers.
how do you "run" a .cshrc?
Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.