Add -y option for youcompleteme.sh

This commit is contained in:
Austen Adler 2016-07-27 01:02:38 -04:00
parent ffa25ac356
commit 992dcd6113
No known key found for this signature in database
GPG Key ID: 7ECEE590CCDFE3F1

View File

@ -1,8 +1,11 @@
#!/bin/zsh #!/bin/zsh
echo "Make sure this is in your .vimrc" echo "Make sure this is in your .vimrc"
echo "Plug 'https://github.com/Valloric/YouCompleteMe'" echo "Plug 'https://github.com/Valloric/YouCompleteMe'"
echo -n "Press enter to continue..." if [ ! "$1" = "-y" ]; then
read a # They want to assume yes, require no user input
echo -n "Press enter to continue..."
read a
fi
rm -rf ~/ycm_build rm -rf ~/ycm_build
mkdir ~/ycm_build mkdir ~/ycm_build
cd ~/ycm_build cd ~/ycm_build
@ -15,6 +18,8 @@ cmake --build . --target ycm_core
#npm install --production #npm install --production
cd - cd -
echo "It should be done." echo "It should be done."
echo -n "Running vim to test for errors. Press enter to continue..." if [ ! "$1" = "-y" ]; then
read a echo -n "Running vim to test for errors. Press enter to continue..."
vim +q read a
vim +q
fi