Add -y option for youcompleteme.sh
This commit is contained in:
parent
ffa25ac356
commit
992dcd6113
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user