mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 21:08:35 -07:00
dev-python/ebuildtester: Add bash-completion
Package-Manager: Portage-2.3.19, Repoman-2.3.6
This commit is contained in:
20
dev-python/ebuildtester/files/ebuildtester.bash-completion
Normal file
20
dev-python/ebuildtester/files/ebuildtester.bash-completion
Normal file
@@ -0,0 +1,20 @@
|
||||
_ebuildtester() {
|
||||
local cur prev opts
|
||||
COMPREPLY=()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
opts="--help --portage-dir --atom --threads"
|
||||
|
||||
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
fi
|
||||
|
||||
case "${prev}" in
|
||||
--portage-dir)
|
||||
COMPREPLY=( $(compgen -o dirnames -A directory ${cur}) )
|
||||
;;
|
||||
esac
|
||||
|
||||
}
|
||||
complete -F _ebuildtester ebuildtester
|
||||
Reference in New Issue
Block a user