Update 'clone_dotfiles.sh'

This commit is contained in:
tosu 2023-01-31 12:46:39 +01:00
parent 00b95f2ab3
commit 52554969c9
1 changed files with 9 additions and 7 deletions

View File

@ -1,14 +1,16 @@
cd
shopt -s dotglob
rm -rf .git
printf "\033[32m%s\033[m\n" "Backing up current dotfiles"
printf "\033[35m%s\033[m\n" ".bashrc -> .bashrc.old"
cp .bashrc .bashrc.old
printf "\033[35m%s\033[m\n" ".profile -> .profile.old"
cp .profile .profile.old
printf "\033[35m%s\033[m\n" ".inputrc -> .inputrc.old"
cp .inputrc .inputrc.old
printf "\033[35m%s\033[m\n" ".bashrc -> .bashrc.OLDDOTFILE"
cp .bashrc .bashrc.OLDDOTFILE
printf "\033[35m%s\033[m\n" ".profile -> .profile.OLDDOTFILE"
cp .profile .profile.OLDDOTFILE
printf "\033[35m%s\033[m\n" ".inputrc -> .inputrc.OLDDOTFILE"
cp .inputrc .inputrc.OLDDOTFILE
printf "\033[32m%s\033[m\n" "Remove old dotfile with rm -rf *.OLDDOTFILE"
sleep 1
sleep 2
git init
git remote add origin https://git.timo.one/tosu/dotfilestosu