diff --git a/plugins/cp/README.md b/plugins/cp/README.md index 528925cce..d2cc64ff7 100644 --- a/plugins/cp/README.md +++ b/plugins/cp/README.md @@ -21,6 +21,8 @@ The enabled options for rsync are: * `-b`: make a backup of the original file instead of overwriting it, if it exists. +* `-r`: recurse directories. + * `-hhh`: outputs numbers in human-readable format, in units of 1024 (K, M, G, T). * `--backup-dir=/tmp/rsync`: move backup copies to "/tmp/rsync". diff --git a/plugins/cp/cp.plugin.zsh b/plugins/cp/cp.plugin.zsh index a80f56eca..607a24b40 100644 --- a/plugins/cp/cp.plugin.zsh +++ b/plugins/cp/cp.plugin.zsh @@ -1,4 +1,4 @@ cpv() { - rsync -pogb -hhh --backup-dir=/tmp/rsync -e /dev/null --progress -- "$@" + rsync -pogbr -hhh --backup-dir=/tmp/rsync -e /dev/null --progress -- "$@" } compdef _files cpv