|
Lines 17-25
Link Here
|
| 17 |
# in .pre. See the ebuild for how this is created. |
17 |
# in .pre. See the ebuild for how this is created. |
| 18 |
if ! $loaded_pre; then |
18 |
if ! $loaded_pre; then |
| 19 |
if [[ ${BASH_COMPLETION-unset} == unset ]]; then |
19 |
if [[ ${BASH_COMPLETION-unset} == unset ]]; then |
| 20 |
BASH_COMPLETION=/usr/share/bash-completion/base |
20 |
BASH_COMPLETION=@GENTOO_PORTAGE_EPREFIX@/usr/share/bash-completion/base |
| 21 |
fi |
21 |
fi |
| 22 |
source /usr/share/bash-completion/.pre |
22 |
source @GENTOO_PORTAGE_EPREFIX@/usr/share/bash-completion/.pre |
| 23 |
loaded_pre=true |
23 |
loaded_pre=true |
| 24 |
fi |
24 |
fi |
| 25 |
|
25 |
|
|
Lines 28-34
Link Here
|
| 28 |
done |
28 |
done |
| 29 |
|
29 |
|
| 30 |
# Clean up |
30 |
# Clean up |
| 31 |
$loaded_pre && source /usr/share/bash-completion/.post |
31 |
$loaded_pre && source @GENTOO_PORTAGE_EPREFIX@/usr/share/bash-completion/.post |
| 32 |
unset -f _load_completions # not designed to be called more than once |
32 |
unset -f _load_completions # not designed to be called more than once |
| 33 |
} |
33 |
} |
| 34 |
|
34 |
|
|
Lines 39-47
Link Here
|
| 39 |
# 4. Load user completion file last, overrides modules at user discretion |
39 |
# 4. Load user completion file last, overrides modules at user discretion |
| 40 |
# This order is subject to change once upstream decides on something. |
40 |
# This order is subject to change once upstream decides on something. |
| 41 |
_load_completions \ |
41 |
_load_completions \ |
| 42 |
/etc/bash_completion.d/base \ |
42 |
@GENTOO_PORTAGE_EPREFIX@/etc/bash_completion.d/base \ |
| 43 |
~/.bash_completion.d/base \ |
43 |
~/.bash_completion.d/base \ |
| 44 |
/etc/bash_completion.d/* \ |
44 |
@GENTOO_PORTAGE_EPREFIX@/etc/bash_completion.d/* \ |
| 45 |
~/.bash_completion.d/* \ |
45 |
~/.bash_completion.d/* \ |
| 46 |
~/.bash_completion |
46 |
~/.bash_completion |
| 47 |
fi |
47 |
fi |