Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 350179 | Differences between
and this patch

Collapse All | Expand All

(-)a/gentoo (-6 / +26 lines)
Lines 1200-1212 _equery() Link Here
1200
        COMPREPLY=($(builtin cd ${portdir}/metadata/cache; compgen -W "$(compgen -G '*')" -- $cur))
1200
        COMPREPLY=($(builtin cd ${portdir}/metadata/cache; compgen -W "$(compgen -G '*')" -- $cur))
1201
        fi
1201
        fi
1202
        ;;
1202
        ;;
1203
    @(u?(ses)|w?(hich)))
1203
    u?(ses))
1204
        # Only complete if the previous entry on the command line is not
1204
        # Only complete if the previous entry on the command line is not
1205
        # a package name.
1205
        # a package name.
1206
        if [[ ${prev} == ${mode} ]]; then
1206
        if [[ ${prev} == ${mode} || ${prev:0:1} == "-" ]]; then
1207
            # Complete on all package names.
1207
            case $cur in
1208
            _pkgname -A $cur
1208
                -*)
1209
                COMPREPLY=($(compgen -W "${COMPREPLY[@]} --help" -- ${cur}))
1209
                    COMPREPLY=($(compgen -W "-h --help -a --all" -- $cur))
1210
                ;;
1211
                *)
1212
                    # Complete on all package names.
1213
                    _pkgname -A $cur
1214
                ;;
1215
            esac
1216
        fi
1217
        ;;
1218
    w?(hich))
1219
        # Only complete if the previous entry on the command line is not
1220
        # a package name.
1221
        if [[ ${prev} == ${mode} || ${prev:0:1} == "-" ]]; then
1222
            case $cur in
1223
                -*)
1224
                    COMPREPLY=($(compgen -W "-h --help -m --include-masked" -- $cur))
1225
                ;;
1226
                *)
1227
                    # Complete on all package names.
1228
                    _pkgname -A $cur
1229
                ;;
1230
            esac
1210
        fi
1231
        fi
1211
        ;;
1232
        ;;
1212
    g|depgraph)
1233
    g|depgraph)
1213
- 

Return to bug 350179