cp plugin: change cpv to function so that completion works

This commit is contained in:
Marc Cornellà 2016-09-20 21:34:22 +02:00
commit d95d7a73e0

View file

@ -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