@@ -16,32 +16,28 @@ function backup {
1616
1717platform=" "
1818for i in " Centos" ," Centos" " Ubuntu" ," Ubuntu" " Darwin" ," MacOSX" ; do
19- key=${i% ,* } ; value=${i#* ,} ;
20- if [ ` python -mplatform | grep -ic $key ` == 1 ]; then
19+ key=${i% ,* } ; value=${i#* ,} ;
20+ if [ ` python -mplatform | grep -ic $key ` == 1 ]; then
2121 platform=$value
2222 echoo " You os is $platform ."
2323 fi
2424done
2525
2626
27- read -p " Rebulid the vim and all plugins, Are you sure(Y/N)? " -n 1 -r
28- echo
29- if [[ $REPLY =~ ^[Yy]$ ]]; then
30- backup
31- case $platform in
32- Centos)
33- sudo bash scripts/init-vim-centos.sh
34- ;;
35- Ubuntu)
36- sudo bash scripts/init-vim-ubuntu.sh
37- ;;
38- MacOSX)
39- bash scripts/init-vim-osx.sh
40- echoo " >>> Install fonts for powerline ..."
41- bash fonts/install-fonts.sh
42- esac
43- sudo bash install-plugins.sh init
44- echoo " Install finished. If you need orther language support, please run: ./install-plugins.sh --help"
45- else
46- echoo " User cancels the operation."
47- fi
27+ backup
28+ case $platform in
29+ Centos)
30+ sudo bash scripts/init-vim-centos.sh
31+ ;;
32+ Ubuntu)
33+ sudo bash scripts/init-vim-ubuntu.sh
34+ ;;
35+ MacOSX)
36+ bash scripts/init-vim-osx.sh
37+ echoo " >>> Install fonts for powerline ..."
38+ bash fonts/install-fonts.sh
39+ esac
40+
41+ sudo bash install-plugins.sh init
42+
43+ echoo " Install finished. If you need orther language support, please run: ./install-plugins.sh --help"
0 commit comments