support elementary

This commit is contained in:
程煊 2019-08-23 17:54:02 +08:00
parent 22847fd0c2
commit 6cd47be543
3 changed files with 7 additions and 1 deletions

View File

@ -36,6 +36,7 @@ An automatic configuration program for vim
- Debian - Debian
- Deepin - Deepin
- Linux Mint - Linux Mint
- elementary
- ArchLinux - ArchLinux
- openSUSE - openSUSE

View File

@ -47,6 +47,7 @@
- Debian - Debian
- Deepin - Deepin
- Linux Mint - Linux Mint
- elementary
- ArchLinux - ArchLinux
- openSUSE - openSUSE

View File

@ -15,6 +15,8 @@ function get_linux_distro()
echo "Deepin" echo "Deepin"
elif grep -Eq "LinuxMint" /etc/*-release; then elif grep -Eq "LinuxMint" /etc/*-release; then
echo "LinuxMint" echo "LinuxMint"
elif grep -Eq "elementary" /etc/*-release; then
echo "elementary"
elif grep -Eq "Debian" /etc/*-release; then elif grep -Eq "Debian" /etc/*-release; then
echo "Debian" echo "Debian"
elif grep -Eq "CentOS" /etc/*-release; then elif grep -Eq "CentOS" /etc/*-release; then
@ -162,7 +164,7 @@ function install_prepare_software_on_ubuntu()
sudo apt-get install -y cmake sudo apt-get install -y cmake
fi fi
sudo apt-get install -y ctags build-essential python python-dev python3-dev fontconfig curl libfile-next-perl ack-grep git sudo apt-get install -y exuberant-ctags build-essential python python-dev python3-dev fontconfig curl libfile-next-perl ack-grep git
compile_vim_on_ubuntu compile_vim_on_ubuntu
} }
@ -370,6 +372,8 @@ function install_vimplus_on_linux()
install_vimplus_on_ubuntu install_vimplus_on_ubuntu
elif [ ${distro} == "LinuxMint" ]; then elif [ ${distro} == "LinuxMint" ]; then
install_vimplus_on_ubuntu install_vimplus_on_ubuntu
elif [ ${distro} == "elementary" ]; then
install_vimplus_on_ubuntu
elif [ ${distro} == "Debian" ]; then elif [ ${distro} == "Debian" ]; then
install_vimplus_on_debian install_vimplus_on_debian
elif [ ${distro} == "CentOS" ]; then elif [ ${distro} == "CentOS" ]; then