PageRenderTime 27ms CodeModel.GetById 24ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/bash_completion.d/qdbus

http://github.com/brinkman83/bashrc
#! | 22 lines | 19 code | 3 blank | 0 comment | 0 complexity | 15412dc6127dbe657ee46c8ddb887d57 MD5 | raw file
 1# Qt qdbus completion
 2
 3have qdbus &&
 4_qdbus()
 5{
 6    local cur compstr
 7
 8    COMPREPLY=()
 9    cur=`_get_cword`
10    [ -n "$cur" ] && unset COMP_WORDS[${#COMP_WORDS[@]}-1]
11    COMPREPLY=( $( compgen -W '$( command ${COMP_WORDS[@]} | sed s/\(.*\)// )' \
12        -- "$cur" ) )
13} &&
14complete -F _qdbus qdbus
15
16# Local variables:
17# mode: shell-script
18# sh-basic-offset: 4
19# sh-indent-comment: t
20# indent-tabs-mode: nil
21# End:
22# ex: ts=4 sw=4 et filetype=sh