From 64d36cfc69fc78d8a946fdc8fd5bfdc0297ac27a Mon Sep 17 00:00:00 2001 From: Andrew Wallace Date: Sun, 25 Aug 2013 00:44:58 -0400 Subject: [PATCH] Support installation for Yum packaged system such as Fedora --- setup.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index bef3de0a..ec4c3dea 100755 --- a/setup.sh +++ b/setup.sh @@ -1,6 +1,10 @@ #!/bin/bash echo "安装将花费一定时间,请耐心等待直到安装完成^_^" -sudo apt-get install -y vim vim-gnome ctags xclip astyle python-setuptools +if which apt-get >/dev/null; then + sudo apt-get install -y vim vim-gnome ctags xclip astyle python-setuptools +else + sudo yum install -y vim ctags.i686 xclip astyle python-setuptools +fi sudo easy_install -ZU autopep8 twisted sudo ln -s /usr/bin/ctags /usr/local/bin/ctags mv ~/vim ~/vim_old -f