#Change output display
a="Change successful"
b="change failed"
c="/root/.bashrc"
echo 'export PS1="[\e[36;1m\u@\e[32;1m\h \e[34;1m\W]\\$" ' >> /etc/profile #更改输出显示
if [ $? = 0 ];then
echo "$a"
else
echo "$b"
fi
echo 'set nohls
set nocompatible
filetype on
filetype indent on
filetype plugin on
set autoindent
set smartindent
set showmatch
set ruler
set incsearch
set hlsearch
set nu' >> /etc/vimrc
if [ $? = 0 ];then
echo "$a"
else
echo "$b"
fi
cd /root/
echo ' alias vi=vim ' >>.bashrc
if [ $? = 0 ] ; then
echo "$a"
source $c
else
echo "$b"