Update 'clone_dotfiles.sh'
This commit is contained in:
parent
00b95f2ab3
commit
52554969c9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue