summaryrefslogtreecommitdiff
path: root/completions/sitecopy
diff options
context:
space:
mode:
Diffstat (limited to 'completions/sitecopy')
-rw-r--r--completions/sitecopy13
1 files changed, 6 insertions, 7 deletions
diff --git a/completions/sitecopy b/completions/sitecopy
index 12480e97..ef1310df 100644
--- a/completions/sitecopy
+++ b/completions/sitecopy
@@ -13,15 +13,15 @@ _sitecopy()
COMPREPLY=( $( compgen -W "socket files rcfile ftp http httpbody
rsh sftp xml xmlparse cleartext" -- "$cur" ) )
compopt -o nospace
- return 0
+ return
;;
--logfile|-g|--rcfile|-r)
_filedir
- return 0
+ return
;;
--storepath|-p)
_filedir -d
- return 0
+ return
;;
esac
@@ -29,14 +29,14 @@ _sitecopy()
--*)
COMPREPLY=( $( compgen -W "$(_parse_help $1)" -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace
- return 0
+ return
;;
# only complete long options
-)
compopt -o nospace
COMPREPLY=( -- )
- return 0
+ return
;;
esac
@@ -44,8 +44,7 @@ _sitecopy()
COMPREPLY=( $( compgen -W "$($1 -v | \
command sed -n '/^Site:/s/Site: //p')" -- "$cur" ) )
fi
- return 0
} &&
complete -F _sitecopy -o default sitecopy
-# ex: ts=4 sw=4 et filetype=sh
+# ex: filetype=sh