From d95d7a73e05ba9143a2aa4dc5b0b5ab16ff34514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Tue, 20 Sep 2016 21:34:22 +0200 Subject: [PATCH] cp plugin: change cpv to function so that completion works --- plugins/cp/cp.plugin.zsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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