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!"