Update deploy/update to properly clean up .config folder

This commit is contained in:
TriantaTV 2024-01-25 11:13:07 -06:00
parent c05ba0c398
commit b9984121c8
2 changed files with 7 additions and 2 deletions

View File

@ -1,9 +1,11 @@
#!/bin/bash #!/bin/bash
echo "Syncing user with nvim..." echo "Syncing user with nvim..."
rsync --recursive $(dirname "$0")/nvim/ ~/.config/nvim rsync --deploy --recursive $(dirname "$0")/nvim/ ~/.config/nvim
echo "Syncing user with tmux..." echo "Syncing user with tmux..."
echo " Note: prefix + I for tmux setup" echo " Note: prefix + I for tmux setup"
mkdir -p ~/tmux mkdir -p ~/tmux
rsync --recursive $(dirname "$0")/tmux/tmux.conf ~/.config/tmux/tmux.conf rsync --recursive $(dirname "$0")/tmux/tmux.conf ~/.config/tmux/tmux.conf
echo "Syncing complete!" echo "Syncing complete!"

View File

@ -1,6 +1,9 @@
#!/bin/bash #!/bin/bash
echo "Syncing dotfiles with nvim..." echo "Syncing dotfiles with nvim..."
rsync --recursive ~/.config/nvim $(dirname "$0") rsync --delete --recursive ~/.config/nvim $(dirname "$0")
echo "Syncing dotfiles with tmux..." echo "Syncing dotfiles with tmux..."
rsync ~/.config/tmux/tmux.conf $(dirname "$0")/tmux/tmux.conf rsync ~/.config/tmux/tmux.conf $(dirname "$0")/tmux/tmux.conf
echo "Syncing complete!"