diff --git a/modules/rsync/init.zsh b/modules/rsync/init.zsh index 279423d..f496537 100644 --- a/modules/rsync/init.zsh +++ b/modules/rsync/init.zsh @@ -6,18 +6,18 @@ # # Aliases -rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system' +_rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system' # Mac OS X and HFS+ Enhancements # http://www.bombich.com/rsync.html if [[ "$OSTYPE" == darwin* ]] && grep -q 'file-flags' <(rsync --help 2>&1); then - rsync_cmd="${rsync_cmd} --crtimes --acls --xattrs --fileflags --protect-decmpfs --force-change" + _rsync_cmd="${_rsync_cmd} --crtimes --acls --xattrs --fileflags --protect-decmpfs --force-change" fi -alias rsync-copy="${rsync_cmd}" -alias rsync-move="${rsync_cmd} --remove-source-files" -alias rsync-update="${rsync_cmd} --update" -alias rsync-synchronize="${rsync_cmd} --update --delete" +alias rsync-copy="${_rsync_cmd}" +alias rsync-move="${_rsync_cmd} --remove-source-files" +alias rsync-update="${_rsync_cmd} --update" +alias rsync-synchronize="${_rsync_cmd} --update --delete" -unset rsync_cmd +unset _rsync_cmd