Mark, I modified my /etc/skel/.bash_profile to source /etc/bash.rc so any users 
created get what's in /etc/bash.rc.  

I then copied the .bash* files from /etc/skel to /root and you will have the files.  
Any new users get the new files.

Essentially /etc/bash.rc serves as a place to define system wide aliases, environment 
variables, commands, whatever else.


> 
> From: gabriel <[EMAIL PROTECTED]>
> Date: 2004/02/13 Fri PM 03:51:53 GMT
> To: [EMAIL PROTECTED]
> Subject: Re: [gentoo-user] root aliases (vi="vim")
> 
> On February 13, 2004 10:36 am, Mark Knecht wrote:
> > Hi,
> >    I did some Googling to no avail. My root account had no .bashrc so I
> > tried adding one with an alias vi="vim" command but it doesn't seem to
> > work.
> >
> >    What's the best way to do an alias in the root account?
> 
> you can put your aliases in .bashrc, but you have to make sure that bash 
> sources that file upon login.  normally, i have .bash_profile in /root/ with 
> the following contents:
> 
>   #This file is sourced by bash when you log in interactively.
>   [ -f ~/.bashrc ] && . ~/.bashrc
> 
> then .bashrc can have your aliases, /or/ if you've got a lot of aliases, you 
> can put this line in .bashrc:
> 
>   source ~/.aliases
> 
> and then put all of your aliases in there.  have fun ;-)
> 
> -- 
> once the game is over,
> the king and the pawn go back into the same box
>       - italian proverb
> 
> --
> [EMAIL PROTECTED] mailing list
> 
> 


--
[EMAIL PROTECTED] mailing list

Reply via email to