Skip to content

Commit

Permalink
Merge pull request chxuan#314 from ardinzh/master
Browse files Browse the repository at this point in the history
add for FreeBSD support
  • Loading branch information
chxuan authored Nov 6, 2020
2 parents e08ee8c + 026f943 commit d514468
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# 获取linux发行版名称
function get_linux_distro()
Expand Down Expand Up @@ -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()
{
Expand Down Expand Up @@ -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()
{
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d514468

Please sign in to comment.