[X4U] Setting Shell Defaults for root

Rick Gordon rick at rickgordon.com
Thu Jul 8 11:53:57 PDT 2004


Nope. I just tried it and it didn't work. FWIW, /etc is a symbolic link to /private/etc, so my edits in /private/etc/csh.login should have also been recognized according to that consideration.

Rick Gordon

------------------

On 7/8/04 at 1:14 PM -0500, Rod Buchanan wrote in a message entitled
"Re: [X4U] Setting Shell Defaults for root":

>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.

-- 
 
___________________________________________________

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________

WWW:   http://www.shelterpub.com



More information about the X4U mailing list