diff --git a/plugins/cp/cp.plugin.zsh b/plugins/cp/cp.plugin.zsh index 7355a9990..76b22cc56 100644 --- a/plugins/cp/cp.plugin.zsh +++ b/plugins/cp/cp.plugin.zsh @@ -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