#!/bin/sh cd ~/ || exit fsynca () { # t? rsync -RUuavn --delete-after $exclude $syncfile "$target" } fsyncb () { printf "===confirm changes?\n" printf "y/n: " read -r uinput if [ "$uinput" != "n" ] && [ "$uinput" != "N" ]; then printf "\n\n\n" rsync -RUuav --progress --delete-after $exclude $syncfile "$target" printf "\n===end sync\n---------\n\n" fi } syncfile=".surf/styles .urlview .gnupg .local/bin/lf-gadgets .local/share/applications/custom .config/FreeTube .config/newsboat .config/zsh .config/vesktop/themes .config/Pinta .config/gajim/theme stuff/notes stuff/openvpn-cons stuff/scripts stuff/media/ICE stuff/media/music stuff/manual-programs/mediamtx" target="laptop:~" exclude="--exclude stream.sh --exclude node_modules --exclude **/target" fsynca fsyncb