diff --git a/install.sh b/install.sh index da31e81..70acca8 100755 --- a/install.sh +++ b/install.sh @@ -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