Setting Shell Defaults for root
Rod Buchanan
lists at sofstats.com
Thu Jul 8 11:14:16 PDT 2004
On 7/8/04 2:22 AM, "Rick Gordon" <rick at rickgordon.com> wrote:
> I use tcsh as my default shell, and I have my /private/etc/csh.login file
> customized with numerous aliases, along with other tweaks.
>
> ...
>
> Where can I store these commands where they will remain active when I sudo or
> su root (both of which I do frequently) or spawn a new shell (which I don't do
> as often)?
A quick check of "man tcsh" finds:
"A login shell begins by executing commands from the system files
/etc/csh.cshrc and /etc/csh.login. ... Non-login shells read only
/etc/csh.cshrc and ~/.tcshrc or ~/.cshrc on startup."
I'm not a tcsh user but it looks like /etc/csh.cshrc may be what you're
looking for
--
Rod
A computer without Windows is like a fish without a bicycle.
More information about the X4U
mailing list