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

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

    case $prev in
        -display | -e)
            return
            ;;
    esac

    if [[ $cur == -* ]]; then
        _comp_compgen_help -- -help
        return
    fi

    _comp_compgen_filedir
} &&
    complete -F _comp_cmd_xmodmap xmodmap

# ex: filetype=sh