Lines 1437-1442
complete -o filenames -F _ekeyword ekeyword
Link Here
|
1437 |
} |
1437 |
} |
1438 |
|
1438 |
|
1439 |
# |
1439 |
# |
|
|
1440 |
# eshowkw completion |
1441 |
# |
1442 |
|
1443 |
have eshowkw && { |
1444 |
_eshowkw() |
1445 |
{ |
1446 |
local cur prev |
1447 |
cur="${COMP_WORDS[COMP_CWORD]}" |
1448 |
prev="${COMP_WORDS[COMP_CWORD-1]}" |
1449 |
|
1450 |
case $prev in |
1451 |
-a|--arch) |
1452 |
COMPREPLY=($(compgen -W "$(grep -v \# < ${portdir}/profiles/arch.list)" -- $cur)) |
1453 |
;; |
1454 |
-A|--align) |
1455 |
COMPREPLY=($(compgen -W "top bottom" -- $cur)) |
1456 |
;; |
1457 |
-T|--top-position) |
1458 |
COMPREPLY=($(compgen -W "archlist versionlist" -- $cur)) |
1459 |
;; |
1460 |
*) |
1461 |
case $cur in |
1462 |
-*) |
1463 |
COMPREPLY=($(compgen -W "--help -h --version -v --arch -a --align -A --top-position -T --bold -B --color -C --overlays -O --prefix -P --ignore-slot -S" -- $cur)) |
1464 |
;; |
1465 |
*) |
1466 |
_pkgname -A $cur |
1467 |
;; |
1468 |
esac |
1469 |
esac |
1470 |
} |
1471 |
complete -F _eshowkw eshowkw |
1472 |
} |
1473 |
|
1474 |
# |
1440 |
# portageq completion |
1475 |
# portageq completion |
1441 |
# |
1476 |
# |
1442 |
|
1477 |
|
1443 |
- |
|
|