Skip to content

Commit 64d36cf

Browse files
committed
Support installation for Yum packaged system such as Fedora
1 parent b179571 commit 64d36cf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

setup.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/bin/bash
22
echo "安装将花费一定时间,请耐心等待直到安装完成^_^"
3-
sudo apt-get install -y vim vim-gnome ctags xclip astyle python-setuptools
3+
if which apt-get >/dev/null; then
4+
sudo apt-get install -y vim vim-gnome ctags xclip astyle python-setuptools
5+
else
6+
sudo yum install -y vim ctags.i686 xclip astyle python-setuptools
7+
fi
48
sudo easy_install -ZU autopep8 twisted
59
sudo ln -s /usr/bin/ctags /usr/local/bin/ctags
610
mv ~/vim ~/vim_old -f

0 commit comments

Comments
 (0)