cp plugin: recurse directories

This commit is contained in:
Marc Cornellà 2016-09-21 22:53:36 +02:00
commit b7f8e238cb
2 changed files with 3 additions and 1 deletions

View file

@ -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. * `-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). * `-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". * `--backup-dir=/tmp/rsync`: move backup copies to "/tmp/rsync".

View file

@ -1,4 +1,4 @@
cpv() { 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 compdef _files cpv