From b9984121c8a8adc733e637b0b71ef0e2d626e3a9 Mon Sep 17 00:00:00 2001
From: TriantaTV <gregcraw2001@gmail.com>
Date: Thu, 25 Jan 2024 11:13:07 -0600
Subject: [PATCH] Update deploy/update to properly clean up .config folder

---
 deploy.sh | 4 +++-
 update.sh | 5 ++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/deploy.sh b/deploy.sh
index 74aaf2f..7cd34fa 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,9 +1,11 @@
 #!/bin/bash
 
 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 "  Note: prefix + I for tmux setup"
 mkdir -p ~/tmux
 rsync --recursive $(dirname "$0")/tmux/tmux.conf ~/.config/tmux/tmux.conf
+
 echo "Syncing complete!"
diff --git a/update.sh b/update.sh
index e63bd6b..c06ffdf 100755
--- a/update.sh
+++ b/update.sh
@@ -1,6 +1,9 @@
 #!/bin/bash
 
 echo "Syncing dotfiles with nvim..."
-rsync --recursive ~/.config/nvim $(dirname "$0")
+rsync --delete --recursive ~/.config/nvim $(dirname "$0")
+
 echo "Syncing dotfiles with tmux..."
 rsync ~/.config/tmux/tmux.conf $(dirname "$0")/tmux/tmux.conf
+
+echo "Syncing complete!"