Place to store aliases for all users?

michaelsanford

Translator, Web Developer
I seem to remember a place like /Library/init/tcsh/ that stored something similar to the ~/.tcshrc file, but that is avalable to all users (using the specified shell).

I'd like to make some aliases (of the form alias name 'command') that are available to all users. Where do I stil them?

:confused:
 
There is the tantalizingly named file
/usr/share/init/tcsh/aliases
which would seem like a reasonable place to put these things, but it seems that this file is not used by default. I think the best bet would be to use
/etc/csh.cshrc
which is used by both csh and tcsh. One approach would be to include a line like:
source /etc/share/init/tcsh/aliases
in /etc/csh.cshrc so that the aliases are all stored in a common place. Inside of /etc/csh.cshrc is some example code that shows how to do tcsh specific stuff.
 
:cool: thanks randomdude.

I pulled this little stunt in /etc/csh.cshrc
source /Users/gwailo/.tcshrc
;)
Since I'm the only user on this computer (aside from a few SSH account I set up for my friends who like a shell to play with) it's the only thing I back up...
 
Back
Top