Files
dot_files/setup.sh
Autumn Naber 036248b797 Initial commit
2022-01-24 12:32:39 -08:00

22 lines
624 B
Bash
Executable File

#!/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
copy_list=(ctags dircolors gitconfig inputrc tmux.conf vim vimrc Xdefaults)
for config in ${copy_list[@]}; do
cp -r "$config" $HOME/."$config"
done
echo "Please log out and log back in for changes to take effect."