aboutsummaryrefslogtreecommitdiffstats
path: root/extras/bash_completion/mana
blob: 6ec90ea046f34d70bebe09b515e90651b11a7c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# mana(1) completion                                         -*- shell-script -*-

_mana()
{
    local cur prev words cword
    _init_completion || return

    if [[ "$cur" == -* ]]; then
        COMPREPLY=( $( compgen -u "$cur" ) )
    else
        local opts=$( _parse_help "$1" )
        [[ $opts ]] || opts="user host proxy service log dm clock pan rpm update wall" # POSIX fallback
        COMPREPLY=( $( compgen -W "$opts" -- "$cur" ) )
    fi
} &&
complete -F _mana mana

# ex: ts=4 sw=4 et filetype=sh