From da15c9c081392f3805d597b4448c2d9b776ba7af Mon Sep 17 00:00:00 2001 From: Seymur Bagirov Date: Tue, 26 Dec 2023 18:20:44 +0400 Subject: [PATCH] move to a backup file instead of removing the folders --- setup.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/setup.sh b/setup.sh index dd1e5c5..a92ed1a 100644 --- a/setup.sh +++ b/setup.sh @@ -1,15 +1,15 @@ #!/bin/sh -removePathAndLink() { - rm -rf ~/.config/$1 +movePathAndLink() { + mv ~/.config/$1 ~/.config/$1.bckp ln -s $(pwd)/$1 ~/.config/$1 } moveShell() { - rm -rf ~/.zshrc + mv ~/.zshrc ~/.zshrc.bckp ln -s $(pwd)/zsh/.zshrc ~/.zshrc - rm -rf ~/.profile + mv ~/.profile ~/.profile.bckp ln -s $(pwd)/zsh/.profile ~/.profile } @@ -21,10 +21,10 @@ else exit 1 fi -removePathAndLink nvim -removePathAndLink hypr -removePathAndLink waybar -removePathAndLink kitty +movePathAndLink nvim +movePathAndLink hypr +movePathAndLink waybar +movePathAndLink kitty moveShell