#!/bin/bash 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 if [ ! "$(ls -A ./vim/bundle/taglist)" ]; then echo "Pulling tags, since you're lazy..." git submodule init git submodule update fi copy_list=(ctags dircolors gitconfig inputrc tmux.conf vim vimrc Xdefaults) for config in ${copy_list[@]}; do cp -fr "$config" $HOME/."$config" 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."