mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
cp plugin: remove -- to separate files from options
This has some undesired effects, like having `cpv --help` be a file not found error. Use `--` yourself if you need it: ```zsh cpv -- -some-file-with-hyphens.txt /tmp ```
This commit is contained in:
parent
b7f8e238cb
commit
15900e7778
2 changed files with 1 additions and 3 deletions
|
|
@ -30,5 +30,3 @@ The enabled options for rsync are:
|
|||
* `-e /dev/null`: only work on local files (disable remote shells).
|
||||
|
||||
* `--progress`: display progress.
|
||||
|
||||
* `--`: everything after this is an argument, even if it starts with a hyphen.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
cpv() {
|
||||
rsync -pogbr -hhh --backup-dir=/tmp/rsync -e /dev/null --progress -- "$@"
|
||||
rsync -pogbr -hhh --backup-dir=/tmp/rsync -e /dev/null --progress "$@"
|
||||
}
|
||||
compdef _files cpv
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue