mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
cp plugin: change cpv to function so that completion works
This commit is contained in:
parent
16074a1c4d
commit
d95d7a73e0
1 changed files with 4 additions and 1 deletions
|
|
@ -11,4 +11,7 @@
|
|||
# -e /dev/null - only work on local files
|
||||
# -- - everything after this is an argument, even if it looks like an option
|
||||
|
||||
alias cpv="rsync -poghb --backup-dir=/tmp/rsync -e /dev/null --progress --"
|
||||
cpv() {
|
||||
rsync -poghb --backup-dir=/tmp/rsync -e /dev/null --progress -- "$@"
|
||||
}
|
||||
compdef _files cpv
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue