From a1ad32a2911fe6ca05830d8f2c58275f146c9675 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 29 Oct 2018 18:59:10 +0100 Subject: Ported install script (sort of) --- install.sh | 54 ++++++++++++++++++++---------------------------------- 1 file changed, 20 insertions(+), 34 deletions(-) mode change 100644 => 100755 install.sh diff --git a/install.sh b/install.sh old mode 100644 new mode 100755 index cfdf3bd..8dd8d7d --- a/install.sh +++ b/install.sh @@ -1,35 +1,21 @@ +#!/bin/env bash + # Welcome to Vimax! -# -# This script allows a local installation to some random path and starts -# the vim-EDITOR after installation is finished. That way the configuration -# can easily be tested. -# -# You have just executed this script - -if [[ ! $EDITOR =~ ^n?g?vim?$ ]]; then - echo Your EDITOR environment variable is set to \"$EDITOR\" - echo This script requires it to be some kind of vim or nvim, gvim, vi, ... - echo - echo Please run this script with EDITOR=vim sh install.sh - echo Which will set the EDITOR just temporary for running this script. - exit -fi - -cd $(dirname "$0") - -echo "working in $(pwd)" - -mkdir -p autoload -ln -i -s -b vimrc-full vimrc - -$EDITOR -u NORC -N \ - +runtime plugin/netrwPlugin.vim \ - +'new +saveas!\ autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' \ - +'new +saveas!\ vimrc-full http://git.entwicklerseite.de/vim/plain/vimrc-full' \ - +qall - -$EDITOR -u vimrc-full -N \ - +'PlugInstall --sync' \ - +qall - -$EDITOR -u vimrc-full -N $0 +THIS_DIR=$(dirname $(realpath $0)) + +pushd . + +# Change to this files directory +cd $THIS_DIR + +# Fetch dependencies (git submodules)... +git submodule update --init --remote --progress + +# compile YouCompleteMe +cd $THIS_DIR/pack/vim/opt/YouCompleteMe +./install.py --clang-completer + + + + +popd -- cgit v1.2.3