summaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorSami Kerola2017-04-11 22:37:40 +0200
committerSami Kerola2017-04-17 19:40:34 +0200
commit768f3152309e44c1a6b927c7d3597808738b5b85 (patch)
tree1e21af70ca9e64ebd3d82e9379e4b69576814936 /bash-completion
parentbash-completion: update term-utils (diff)
downloadkernel-qcow2-util-linux-768f3152309e44c1a6b927c7d3597808738b5b85.tar.gz
kernel-qcow2-util-linux-768f3152309e44c1a6b927c7d3597808738b5b85.tar.xz
kernel-qcow2-util-linux-768f3152309e44c1a6b927c7d3597808738b5b85.zip
bash-completion: update text-utils
hexdump: Add --color option. Commit: 098ab0778f5a46ab4519c8404fd4ba8ec137368b Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/hexdump5
1 files changed, 5 insertions, 0 deletions
diff --git a/bash-completion/hexdump b/bash-completion/hexdump
index 9dc274076..80b1ab628 100644
--- a/bash-completion/hexdump
+++ b/bash-completion/hexdump
@@ -5,6 +5,10 @@ _hexdump_module()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
case $prev in
+ '-L'|'--color')
+ COMPREPLY=( $(compgen -W "auto never always" -- $cur) )
+ return 0
+ ;;
'-e'|'--format')
COMPREPLY=( $(compgen -W "format" -- $cur) )
return 0
@@ -29,6 +33,7 @@ _hexdump_module()
--two-bytes-decimal
--two-bytes-octal
--two-bytes-hex
+ --color=
--format
--format-file
--length