]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
bash-completion: update text-utils
authorSami Kerola <kerolasa@iki.fi>
Tue, 11 Apr 2017 20:37:40 +0000 (21:37 +0100)
committerSami Kerola <kerolasa@iki.fi>
Mon, 17 Apr 2017 17:40:34 +0000 (18:40 +0100)
hexdump:

Add --color option.

Commit: 098ab0778f5a46ab4519c8404fd4ba8ec137368b

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
bash-completion/hexdump

index 9dc2740769fc4918594f50e5ea0fac4dfdca7324..80b1ab62850c264a831a5d8e6e001f1370fca2f3 100644 (file)
@@ -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