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

Collapse All | Expand All

(-)/usr/share/bash-completion/gentoo.old (-7 / +10 lines)
Lines 20-32 Link Here
20
#
20
#
21
_portdir()
21
_portdir()
22
{
22
{
23
    sed -n -e '/^PORTDIR=/ { s/^[^=]\+="\?\([^"]\+\|\S\+\).*/\1/p ; q }' \
23
    (
24
        /etc/make.{conf,globals} 2>/dev/null
24
        source /etc/make.globals
25
25
        source /etc/make.conf
26
    if [[ $1 == '-o' ]] ; then
26
27
        sed -n -e '/^PORTDIR_OVERLAY=/ { s/^[^=]\+="\?\([^"]\+\|\S\+\).*/\1/p ; q }' \
27
        echo ${PORTDIR}
28
            /etc/make.conf 2>/dev/null
28
			
29
    fi
29
        if [[ $1 == '-o' ]] ; then
30
            echo ${PORTDIR_OVERLAY}
31
        fi
32
    )
30
}
33
}
31
34
32
# like _pkgname but completes on package names only (no category)
35
# like _pkgname but completes on package names only (no category)

Return to bug 100373