summaryrefslogtreecommitdiffstats
path: root/completions/iftop
blob: d1635af98194e0ddc9d80adb8530e5aafdc58294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# iftop(8) completion                                      -*- shell-script -*-

_comp_cmd_iftop()
{
    local cur prev words cword comp_args
    _comp_initialize -- "$@" || return

    case $prev in
        -h | -f | -F | -m)
            return
            ;;
        -i)
            _comp_compgen_available_interfaces -a
            return
            ;;
        -c)
            _comp_compgen_filedir
            return
            ;;
    esac

    _comp_compgen_help -- -h
} &&
    complete -F _comp_cmd_iftop iftop

# ex: filetype=sh