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 (-6 / +8 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.conf
25
25
26
    if [[ $1 == '-o' ]] ; then
26
         if [[ $1 == '-o' ]] ; then
27
        sed -n -e '/^PORTDIR_OVERLAY=/ { s/^[^=]\+="\?\([^"]\+\|\S\+\).*/\1/p ; q }' \
27
              echo ${PORTDIR_OVERLAY}
28
            /etc/make.conf 2>/dev/null
28
         else
29
    fi
29
              echo ${PORTDIR}
30
         fi
31
    )
30
}
32
}
31
33
32
# like _pkgname but completes on package names only (no category)
34
# like _pkgname but completes on package names only (no category)

Return to bug 100373