mirror of
https://github.com/TheM1Stery/dotfiles.git
synced 2025-04-20 00:51:11 +00:00
move to a backup file instead of removing the folders
This commit is contained in:
parent
de451bb584
commit
da15c9c081
16
setup.sh
16
setup.sh
@ -1,15 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
removePathAndLink() {
|
movePathAndLink() {
|
||||||
rm -rf ~/.config/$1
|
mv ~/.config/$1 ~/.config/$1.bckp
|
||||||
ln -s $(pwd)/$1 ~/.config/$1
|
ln -s $(pwd)/$1 ~/.config/$1
|
||||||
}
|
}
|
||||||
|
|
||||||
moveShell() {
|
moveShell() {
|
||||||
rm -rf ~/.zshrc
|
mv ~/.zshrc ~/.zshrc.bckp
|
||||||
ln -s $(pwd)/zsh/.zshrc ~/.zshrc
|
ln -s $(pwd)/zsh/.zshrc ~/.zshrc
|
||||||
|
|
||||||
rm -rf ~/.profile
|
mv ~/.profile ~/.profile.bckp
|
||||||
ln -s $(pwd)/zsh/.profile ~/.profile
|
ln -s $(pwd)/zsh/.profile ~/.profile
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -21,10 +21,10 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
removePathAndLink nvim
|
movePathAndLink nvim
|
||||||
removePathAndLink hypr
|
movePathAndLink hypr
|
||||||
removePathAndLink waybar
|
movePathAndLink waybar
|
||||||
removePathAndLink kitty
|
movePathAndLink kitty
|
||||||
|
|
||||||
|
|
||||||
moveShell
|
moveShell
|
||||||
|
Loading…
Reference in New Issue
Block a user