mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-23 05:38:01 +00:00
Improved the rsync plugin for OS X.
This commit is contained in:
parent
60f7ab8f80
commit
6de821b70d
@ -1,10 +1,20 @@
|
|||||||
# Aliases
|
# Aliases
|
||||||
alias rsync-copy='rsync --verbose --progress --human-readable --compress --archive --hard-links'
|
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"
|
||||||
|
fi
|
||||||
|
|
||||||
|
alias rsync-copy="${rsync_cmd}"
|
||||||
compdef _rsync rsync-copy=rsync
|
compdef _rsync rsync-copy=rsync
|
||||||
alias rsync-move='rsync --verbose --progress --human-readable --compress --archive --hard-links --remove-source-files'
|
alias rsync-move="${rsync_cmd} --remove-source-files"
|
||||||
compdef _rsync rsync-move=rsync
|
compdef _rsync rsync-move=rsync
|
||||||
alias rsync-update='rsync --verbose --progress --human-readable --compress --archive --hard-links --update'
|
alias rsync-update="${rsync_cmd} --update"
|
||||||
compdef _rsync rsync-upate=rsync
|
compdef _rsync rsync-upate=rsync
|
||||||
alias rsync-synchronize='rsync --verbose --progress --human-readable --compress --archive --hard-links --update --delete'
|
alias rsync-synchronize="${rsync_cmd} --update --delete"
|
||||||
compdef _rsync rsync-synchronize=rsync
|
compdef _rsync rsync-synchronize=rsync
|
||||||
|
|
||||||
|
unset rsync_cmd
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user