diff options
Diffstat (limited to 'completions/ncftp')
-rw-r--r-- | completions/ncftp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/ncftp b/completions/ncftp index 35146f3c..c3f2cf15 100644 --- a/completions/ncftp +++ b/completions/ncftp @@ -6,22 +6,22 @@ _ncftp() _init_completion || return case $prev in - -u|-p|-P|-j|-F) + -u | -p | -P | -j | -F) return ;; esac - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1" -h)' -- "$cur") ) + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '$(_parse_help "$1" -h)' -- "$cur")) return fi if [[ $cword -eq 1 && -f ~/.ncftp/bookmarks ]]; then - COMPREPLY=( $(compgen -W '$(command sed -ne "s/^\([^,]\{1,\}\),.*$/\1/p" \ - ~/.ncftp/bookmarks)' -- "$cur") ) + COMPREPLY=($(compgen -W '$(command sed -ne "s/^\([^,]\{1,\}\),.*$/\1/p" \ + ~/.ncftp/bookmarks)' -- "$cur")) fi } && -complete -F _ncftp -o default ncftp + complete -F _ncftp -o default ncftp # ex: filetype=sh |