sync/applications/youcompleteme.sh
2016-11-13 02:17:55 -05:00

21 lines
631 B
Bash
Executable File

#!/bin/zsh
if [ ! "$1" = "-y" ]; then
# They want to assume yes, require no user input
echo "Make sure this is in your .vimrc"
echo "Plug 'https://github.com/Valloric/YouCompleteMe'"
echo -n "Press enter to continue..."
read a
fi
rm -rf ~/ycm_build
mkdir ~/ycm_build
cd ~/ycm_build
touch .nobackup
cmake -G "Unix Makefiles" . ~/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp
cmake --build . --target ycm_core
#cd ~/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/gocode
#go build
#cd ~/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/tern_runtime
#npm install --production
cd -
echo "It should be done."