mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
Bug: https://bugs.gentoo.org/962554 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Part-of: https://github.com/gentoo/gentoo/pull/43726 Signed-off-by: Florian Schmaus <flow@gentoo.org>
25 lines
460 B
Bash
25 lines
460 B
Bash
# Author: Ciaran McCreesh <ciaranm@gentoo.org>
|
|
#
|
|
# completion for xxd
|
|
|
|
_xxd()
|
|
{
|
|
local cur prev cmd args
|
|
|
|
COMPREPLY=()
|
|
cur=${COMP_WORDS[COMP_CWORD]}
|
|
prev=${COMP_WORDS[COMP_CWORD-1]}
|
|
cmd=${COMP_WORDS[0]}
|
|
|
|
if [[ "${cur}" == -* ]] ; then
|
|
args='-a -b -c -E -g -h -i -l -ps -r -s -u -v'
|
|
COMPREPLY=( $( compgen -W "${args}" -- $cur ) )
|
|
else
|
|
_filedir
|
|
fi
|
|
}
|
|
|
|
complete -F _xxd xxd
|
|
|
|
# vim: set ft=sh sw=4 et sts=4 :
|