On Fri, 2004-02-13 at 07:51, gabriel wrote:
> 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 ;-)

thanks. That worked nicely.

- Mark


--
[EMAIL PROTECTED] mailing list

Reply via email to