rsync: add partial dir
This commit is contained in:
parent
c9c716e9c1
commit
2db1f314dd
2 changed files with 5 additions and 6 deletions
modules
2
modules/prompt/external/powerlevel10k
vendored
2
modules/prompt/external/powerlevel10k
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 017395a266aa15011c09e64e44a1c98ed91c478c
|
||||
Subproject commit 0af598cbed78660066f8a8f4465844501ba5695b
|
|
@ -17,8 +17,7 @@ pmodload 'helper'
|
|||
# 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 --partial-dir=rsync'
|
||||
|
||||
autoload -Uz is-at-least
|
||||
if is-at-least 3.1 ${"$(rsync --version 2>&1)"[(w)3]}; then
|
||||
|
@ -30,9 +29,9 @@ if is-at-least 3.1 ${"$(rsync --version 2>&1)"[(w)3]}; then
|
|||
|
||||
# macOS Enhancements
|
||||
# https://bombich.com/kb/ccc5/credits
|
||||
if is-darwin && grep -q 'file-flags' <(rsync --help 2>&1); then
|
||||
_rsync_cmd="${_rsync_cmd} --crtimes --fileflags --force-change"
|
||||
fi
|
||||
# if is-darwin && grep -q 'file-flags' <(rsync --help 2>&1); then
|
||||
# _rsync_cmd="${_rsync_cmd} --crtimes --fileflags --force-change"
|
||||
# fi
|
||||
fi
|
||||
|
||||
alias rsync-copy="${_rsync_cmd}"
|
||||
|
|
Loading…
Add table
Reference in a new issue