mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
cp plugin: recurse directories
This commit is contained in:
parent
ef82e79731
commit
b7f8e238cb
2 changed files with 3 additions and 1 deletions
|
|
@ -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".
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue