about summary refs log tree commit diff
path: root/profile/.profile.d/rsync.sh
blob: cbbda1a0379f50ad87a92ea56f77ed38d5a3e397 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
#shellcheck disable=SC2139

if command -v rsync >/dev/null 2>&1; then
	_rsync_cp="rsync --archive --compress --verbose --progress --human-readable"

	alias rsync-cp="${_rsync_cp}"
	alias rsync-mv="${_rsync_cp} --remove-source-files"
	alias rsync-sync="${_rsync_cp} --update --delete"

	unset _rsync_cp
fi

Consider giving Nix/NixOS a try! <3