Merge pull request #314 from ardinzh/master

add for FreeBSD support
This commit is contained in:
chxuan 2020-11-06 23:04:43 +08:00 committed by GitHub
commit d51446895c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# 获取linux发行版名称
function get_linux_distro()
@ -252,6 +252,12 @@ function install_prepare_software_on_mac()
fi
}
# 安装FreeBSD必备软件
function install_prepare_software_on_freebsd()
{
sudo pkg install -y vim ctags automake gcc cmake p5-ack python git fontconfig
}
# 安装android平台必备软件
function install_prepare_software_on_android()
{
@ -497,6 +503,14 @@ function install_vimplus_on_mac()
print_logo
}
# 在FreeBSD上安装vimplus
function install_vimplus_on_freebsd()
{
backup_vimrc_and_vim
install_prepare_software_on_freebsd
begin_install_vimplus
}
# 在android平台安装vimplus
function install_vimplus_on_android()
{
@ -639,6 +653,8 @@ function main()
if [ ${type} == "Darwin" ]; then
install_vimplus_on_mac
elif [ ${type} == "FreeBSD" ]; then
install_vimplus_on_freebsd
elif [ ${type} == "Linux" ]; then
tp=$(uname -a)
if [[ $tp =~ "Android" ]]; then