summaryrefslogtreecommitdiff
path: root/completions/rsync
diff options
context:
space:
mode:
Diffstat (limited to 'completions/rsync')
-rw-r--r--completions/rsync6
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/rsync b/completions/rsync
index d72f6324..22593577 100644
--- a/completions/rsync
+++ b/completions/rsync
@@ -5,8 +5,6 @@ _rsync()
local cur prev words cword split
_init_completion -s -n : || return
- _expand || return
-
case $prev in
--config|--password-file|--include-from|--exclude-from|--files-from|\
--log-file|--write-batch|--only-write-batch|--read-batch)
@@ -34,6 +32,8 @@ _rsync()
$split && return
+ _expand || return
+
case $cur in
-*)
COMPREPLY=( $( compgen -W '--verbose --quiet --no-motd --checksum
@@ -76,7 +76,7 @@ _rsync()
[[ $shell == ssh ]] && _xfunc ssh _scp_remote_files
;;
*)
- _known_hosts_real -c -a "$cur"
+ _known_hosts_real -c -a -- "$cur"
_xfunc ssh _scp_local_files
;;
esac