#!/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 echo "Overwriting..." sed -i '/AZSQFRB8/,/END.*AZSQFRB8/d' $HOME/.bash_profile else echo "Aborting..." exit 0 fi fi cat bash_profile_ext >> $HOME/.bash_profile echo "Pulling and updating tags" git submodule init git submodule update --recursive echo "Copying configs" config_copy_list=(ctags dircolors gitconfig inputrc tmux.conf vim vimrc Xdefaults) for config in ${config_copy_list[@]}; do cp -fr "$config" $HOME/."$config" done echo "Copying scripts" mkdir -p "${HOME}/.local/bin" script_copy_list=(update-dns.sh gentags) for script in ${script_copy_list[@]}; do cp -fr "${script}" "${HOME}/.local/bin/${script}" done echo "==========================================================" 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 " - Download and install YCM: https://github.com/ycm-core/YouCompleteMe.git" echo " - cd ./YouCompleteMe && python3 install.py --clangd-completer" echo " - Remove comment markers under OPTION B in your .vimrc"