all repos — dotfiles-base @ 51e366dd6001a49634fbf384abd7bba8b800d747

base important configs that can safely be used almost anywhere

.config/fish/functions/sync-src-to-dest.fish

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
function sync-src-to-dest --description 'Creates an executable shell script boilerplate file'
    if test (count $argv) -ne 2
        echo "A useful rsync helper, semi-unsafe if used thoughtlessly"
        echo "usage: sync-src-to-dest [src-dir/] [dest-dir/]"
        return 1
    end

    # for syncing to Android phone
    #rsync -rlgo -vhcz -e ssh --stats --progress --delete --force $argv[1] $argv[2]
    rsync -avhcz -e ssh --stats --progress --delete --force $argv[1] $argv[2]
end