1
0
Fork 0
mirror of synced 2024-11-05 16:48:57 -05:00

Basic start to an easy setup system

This commit is contained in:
The Aviator 2015-05-14 19:25:38 -04:00
parent 9c1af76e9e
commit b96e08bf53

28
easy_setup.sh Executable file
View file

@ -0,0 +1,28 @@
#!/usr/bin/env bash
paths=('~/.profile' '~/.bash_profile' '~/.bashrc' '~/.bash_logout' '~/.gitconfig' '~/.ssh/config' '~/.tmux.conf' '~/.vimrc' '~/.vim/vimrc' '~/.zprofile' '~/.zshenv' '~/.zshrc' '~/bin' '~/.Xmodmap' '~/.Xresources' '~/.Xdefaults' '~/.vimperatorrc' '~/.xinitrc' '~/.i3' '~/.i3status.conf' '~/.config/awesome' '~/.config/pianobar' '~/.config/vimprobable' '~/.config/redshift' '~/.config/openbox' '~/.config/tint2')
echo "Welcome to the configuration generator for DotBot"
echo "Please be aware that if you have a complicated setup, you may need more customization than this script offers."
for item in ${paths[*]}
do
fullname="${item/\~/$HOME}"
if [ -f $fullname ] || [ -d $fullname ]; then
moveon=0;
until [ $moveon -eq 1 ]; do
read -p "I found ${item}, do you want to dotbot it? (Y/n) " answer
if echo "$answer" | grep -iq "^y" || echo "$answer" | grep -q "^$" ; then
echo "Dotbotted!"
moveon=1
elif echo "$answer" | grep -iq "^n"; then
echo "Not!"
moveon=1
else
echo "Answer not understood: ${answer}"
fi
done
fi
done