Mark Knecht <[EMAIL PROTECTED]> writes:

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

While its a good idea to keep the root account as vanilla as
possible, 

  echo 'alias vi=vim' >>/root/.bashrc
  cat >>/root/.bash_profile <<EOF
[ -f ~/.bashrc ] \
    && source ~/.bashrc
EOF

Matt

-- 
Matthew Kennedy
Gentoo Linux Developer
Bugs go to http://bugs.gentoo.org!

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to