Added optional YCM integration

This commit is contained in:
Autumn Naber
2023-08-25 14:17:40 -07:00
parent 0e39019e63
commit ae70101eba
6 changed files with 104 additions and 41 deletions

View File

@@ -1,5 +1,6 @@
#!/bin/bash
echo "Updating bash_profile"
if [ -n "$(grep AZSQFRB8 $HOME/.bash_profile)" ]; then
read -p "These configurations have already been applied. Continue? [y/N] "
if [ "$REPLY" == "y" ] || [ "$REPLY" == "Y" ]; then
@@ -10,15 +11,13 @@ if [ -n "$(grep AZSQFRB8 $HOME/.bash_profile)" ]; then
exit 0
fi
fi
cat bash_profile_ext >> $HOME/.bash_profile
if [ ! "$(ls -A ./vim/bundle/taglist)" ]; then
echo "Pulling tags, since you're lazy..."
git submodule init
git submodule update
fi
echo "Pulling and updating tags"
git submodule init
git submodule update --recursive
echo "Copying configs"
copy_list=(ctags dircolors gitconfig inputrc tmux.conf vim vimrc Xdefaults)
for config in ${copy_list[@]}; do
cp -fr "$config" $HOME/."$config"
@@ -29,3 +28,10 @@ echo "= Be sure to adjust the Git user/email as necessary!!!!! ="
echo "=========================================================="
echo ""
echo "Please log out and log back in for changes to take effect."
echo ""
echo ""
echo "NOTE: If you wand to use YCM, you need to do the following:"
echo " - Install python3-dev"
echo " - Install either vim-nox or build vim from source with python3 enabled"
echo " - cd ~/.vim/bundle/YouCompleteMe && python3 install.py --clangd-completer"
echo " - Remove comment markers under OPTION B in your .vimrc"