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