use the --ycm option to install.sh to only mess with YCM
This commit is contained in:
parent
c7ef777768
commit
9b3bef9554
1 changed files with 12 additions and 3 deletions
15
install.sh
15
install.sh
|
|
@ -6,6 +6,17 @@ main() {
|
||||||
# sore the calling directory to return later
|
# sore the calling directory to return later
|
||||||
CALLING_DIR=$PWD
|
CALLING_DIR=$PWD
|
||||||
cd $DIR
|
cd $DIR
|
||||||
|
if [[ $1 == "--ycm" ]]; then
|
||||||
|
rm .youcompletemesetup
|
||||||
|
setup_youcompleteme
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
install_everything
|
||||||
|
fi
|
||||||
|
cd $CALLING_DIR
|
||||||
|
}
|
||||||
|
|
||||||
|
install_everything() {
|
||||||
|
|
||||||
echo "updating git modules..."
|
echo "updating git modules..."
|
||||||
setup_gitmodules
|
setup_gitmodules
|
||||||
|
|
@ -29,8 +40,6 @@ main() {
|
||||||
|
|
||||||
echo "setting up git files..."
|
echo "setting up git files..."
|
||||||
symlink_files git-files gitconfig
|
symlink_files git-files gitconfig
|
||||||
|
|
||||||
cd $CALLING_DIR
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_gitmodules() {
|
setup_gitmodules() {
|
||||||
|
|
@ -67,4 +76,4 @@ setup_youcompleteme() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main $@
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue