From efc982e711d48fb61153392e009966c6aad078f7 Mon Sep 17 00:00:00 2001 From: tosu Date: Tue, 31 Jan 2023 12:39:00 +0100 Subject: [PATCH] Update 'clone_dotfiles.sh' --- clone_dotfiles.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/clone_dotfiles.sh b/clone_dotfiles.sh index 885683e..8800474 100644 --- a/clone_dotfiles.sh +++ b/clone_dotfiles.sh @@ -1,4 +1,13 @@ +cd rm -rf .git +printf "\033[32m%s\033[m" "Backing up current dotfiles" +printf "\033[33m%s\033[m" ".bashrc -> .bashrc.old" +cp .bashrc .bashrc.old +printf "\033[33m%s\033[m" ".profile -> .profile.old" +cp .profile .profile.old +printf "\033[33m%s\033[m" ".inputrc -> .inputrc.old" +cp .inputrc .inputrc.old +printf "\033[33m%s\033[m" ".inputrc -> .inputrc.old" git init git remote add origin https://git.timo.one/tosu/dotfilestosu git fetch