dotwryn/bin/vim/rebuild_plugins
2021-09-16 19:12:55 -06:00

27 lines
581 B
Bash
Executable File

#!/bin/zsh
function INSTALL() {
local CMD_NAME="$1"
local BUILD_DIR="$2"
local BUILD="$3"
echo "installing $CMD_NAME"
[ ! -d $BUILD_DIR ] && { echo "unable to locate $CMD_NAME build files"; exit 1; }
$BUILD >/dev/null 2>&1 \
&& echo "$CMD_NAME installation successful" \
|| echo "$CMD_NAME installation failed. Please attempt manual installation";
}
function INSTALL_YCM() {
local CMD_NAME='YouCompleteMe';
local BUILD_DIR="$HOME/.vim/bundle/YouCompleteMe";
function BUILD() {
python3 $BUILD_DIR/install.py
}
INSTALL $CMD_NAME $BUILD_DIR BUILD
}
INSTALL_YCM