dotwryn/bin/vim/rebuild-plugins

27 lines
581 B
Plaintext
Raw Normal View History

2021-09-17 01:12:55 +00:00
#!/bin/zsh
2020-09-10 19:38:42 +00:00
function INSTALL() {
local CMD_NAME="$1"
local BUILD_DIR="$2"
local BUILD="$3"
2021-09-17 01:12:55 +00:00
echo "installing $CMD_NAME"
2020-09-10 19:38:42 +00:00
[ ! -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() {
2021-09-17 01:12:55 +00:00
python3 $BUILD_DIR/install.py
2020-09-10 19:38:42 +00:00
}
2020-09-10 15:42:05 +00:00
2021-09-17 01:12:55 +00:00
INSTALL $CMD_NAME $BUILD_DIR BUILD
2020-09-10 15:42:05 +00:00
}
2021-09-17 01:12:55 +00:00
INSTALL_YCM