#!/bin/bash echo "This script will install and configure vim and zsh automatic." echo "The time this takes is related to the network conditions, please wait patiently." if [[ `whoami` == "root" ]];then echo -e "\033[31mYou are running this script with Root\033[0m" echo -e "\033[31mGenerally, we do not recommend using root for programming or directly controlling your Linux OS, especially when you are a beginner \033[0m" echo -e "\033[31mSo, There is no necessary for you to configure with root." read -p "Do you really want to do this?[N/y]" choice if [[ ${choice} != y ]];then echo "Bye." exit 1 fi fi if which apt-get >/dev/null; then sudo apt-get install -y vim vim-gnome ctags xclip astyle python-setuptools python-dev git wget elif which yum >/dev/null; then sudo yum install -y gcc vim git ctags xclip astyle python-setuptools python-devel wget fi
##Add HomeBrew support on Mac OS if which brew >/dev/null;then echo "You are using HomeBrew tool" brew install vim ctags git astyle fi