Initial commit
This commit is contained in:
21
setup.sh
Executable file
21
setup.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/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."
|
||||
Reference in New Issue
Block a user