diff options
author | David Paleino <dapal@debian.org> | 2011-01-09 18:19:18 +0100 |
---|---|---|
committer | David Paleino <dapal@debian.org> | 2011-01-09 18:19:18 +0100 |
commit | a5e203cfe5bc335667900a3026a13e613152b50c (patch) | |
tree | cbc49be2e8062a929ddb2cfc56e15adfdcab2c49 /completions/xmodmap | |
parent | bccf24e53240356343eb48c00cd256fb7ad2a39a (diff) | |
parent | fe2d7645df9f619a33feb8c8d7c89b1ea5fcad6b (diff) | |
download | bash-completion-a5e203cfe5bc335667900a3026a13e613152b50c.tar.gz |
Merge branch 'master' into 1.x
Conflicts:
CHANGES
configure.ac
Diffstat (limited to 'completions/xmodmap')
-rw-r--r-- | completions/xmodmap | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/completions/xmodmap b/completions/xmodmap new file mode 100644 index 00000000..cde9e7e1 --- /dev/null +++ b/completions/xmodmap @@ -0,0 +1,32 @@ +# xmodmap(1) completion + +have xmodmap && +_xmodmap() +{ + COMPREPLY=() + local cur prev + _get_comp_words_by_ref cur prev + + case $prev in + -display|-e) + return 0 + ;; + esac + + if [[ "$cur" == -* ]]; then + COMPREPLY=( $( compgen -W '-display -help -grammar -verbose -quiet -n + -e -pm -pk -pke -pp' -- "$cur" ) ) + return 0 + fi + + _filedir +} && +complete -F _xmodmap xmodmap + +# 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 |