diff options
Diffstat (limited to 'contrib/repomanage')
-rw-r--r-- | contrib/repomanage | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/contrib/repomanage b/contrib/repomanage new file mode 100644 index 00000000..8cb50206 --- /dev/null +++ b/contrib/repomanage @@ -0,0 +1,29 @@ +# bash completion for repomanage + +have repomanage && +_repomanage() +{ + local cur prev + + COMPREPLY=() + cur=`_get_cword` + prev=${COMP_WORDS[COMP_CWORD-1]} + + [[ "$prev" == -@(h|-help|k|-keep) ]] && return 0 + + if [[ "$cur" == -* ]] ; then + COMPREPLY=( $( compgen -W '-o --old -n --new -s --space -k \ + --keep -c --nocheck -h --help' -- "$cur" ) ) + else + _filedir -d + fi +} && +complete -F _repomanage $filenames repomanage + +# 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 |