Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 55dc6f80a3f2a3893746b2b1c4639bd4 > files > 1

dbus-glib-devel-0.100-3.fc18.x86_64.rpm


# Check for bash
[ -z "$BASH_VERSION" ] && return

################################################################################

__dbus_send() {
    local IFS=$'\n'
    local cur="${COMP_WORDS[COMP_CWORD]}"

    # --name=value style option
    if [[ "$cur" == *=* ]] ; then
        cur=${cur/*=/}
    fi

    COMPREPLY=($(compgen -W "$(/usr/libexec/dbus-bash-completion-helper dbus-send ${COMP_WORDS[@]:0})" -- $cur))
}

################################################################################

complete -o nospace -F __dbus_send dbus-send