Rainer Traut <tr.ml@xxxxxx> wrote:
israel.garcia@xxxxxxxxxxxx schrieb:
> Maybe, it's stupid question but I've just installed CentOS5 and when I'm
> going to edit some of my conf files I see no colors as it did in old
> CentOS4x...
> I'm using:
>
> [root@domian:~]$ echo $TERM
> xterm
Take a look at:
# cat /etc/profile.d/vim.sh
if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ]; then
[ -x /usr/bin/id ] || return
[ `/usr/bin/id -u` -le 100 ] && return
# for bash and zsh, only if no alias is already set
alias vi >/dev/null 2>&1 || alias vi=vim
fi
So you do not get vim for root...
Hth
Rainer
Right answer. I just checked on my CentOS 4.5 box and:
[root@fraud default]# which vi
alias vi='vim'
/usr/bin/vim
but on my CentOS 5.1 box root gets:
[root@bend etc]# which vi
/bin/vi
while users get:
[dave@bend ~]# which vi
vi: aliased to vim
So vim is probably correctly installed on the 5.1 box but root no longer
gets an alias to it. This is actually correct since root should be able
to log in and have full functionality with just the programs in /bin,
/sbin, etc. In particular, root shouldn't be dependent on anything
under /usr.
Cheers,
Dave
--
Politics, n. Strife of interests masquerading as a contest of principles.
-- Ambrose Bierce
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos