diff options
author | David Paleino <dapal@debian.org> | 2011-11-03 12:32:52 +0100 |
---|---|---|
committer | David Paleino <dapal@debian.org> | 2011-11-03 12:32:52 +0100 |
commit | 2c8171c38d87ddef31c92a76547d3fdf773a1337 (patch) | |
tree | 5e720d5a06ead72ed55454bf6647a712a761ed91 /completions/cvsps | |
parent | 9920a8faedf704420571d8072ccab27e9dac40ba (diff) | |
download | bash-completion-2c8171c38d87ddef31c92a76547d3fdf773a1337.tar.gz |
Imported Upstream version 1.90upstream/1.90
Diffstat (limited to 'completions/cvsps')
-rw-r--r-- | completions/cvsps | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/completions/cvsps b/completions/cvsps index 257437bc..8b986f57 100644 --- a/completions/cvsps +++ b/completions/cvsps @@ -1,11 +1,9 @@ -# bash completion for cvsps +# bash completion for cvsps -*- shell-script -*- -have cvsps && _cvsps() { - COMPREPLY=() - local cur prev - _get_comp_words_by_ref -n : cur prev + local cur prev words cword + _init_completion -n : || return case $prev in -h|-z|-f|-d|-l|--diff-opts|--debuglvl) @@ -40,30 +38,21 @@ _cvsps() return 0 ;; -Z) - COMPREPLY=( $( compgen -W '1 2 3 4 5 6 7 8 9' -- "$cur" ) ) + COMPREPLY=( $( compgen -W '{1..9}' -- "$cur" ) ) return 0 ;; --root) - type _cvs_roots &>/dev/null && _cvs_roots + _xfunc cvs _cvs_roots return 0 ;; esac if [[ "$cur" == -* ]] ; then - COMPREPLY=( $( compgen -W '-h -x -u -z -g -s -a -f -d -b -l -r -p -v \ - -t --norc --summary-first --test-log --diff-opts --bkcvs --no-rlog \ - --cvs-direct --no-cvs-direct --debuglvl -Z --root -q -A' \ - -- "$cur" ) ) + COMPREPLY=( $( compgen -W '$( _parse_help "$1" -h )' -- "$cur" ) ) else - type _cvs_roots &>/dev/null && _cvs_roots + _xfunc cvs _cvs_roots fi } && complete -F _cvsps cvsps -# Local variables: -# mode: shell-script -# sh-basic-offset: 4 -# sh-indent-comment: t -# indent-tabs-mode: nil -# End: # ex: ts=4 sw=4 et filetype=sh |