Update bash completion

This commit is contained in:
Martin Lund 2022-06-06 19:47:08 +02:00
parent 6d007d39d7
commit d41649afb6

View file

@ -20,11 +20,12 @@ _tio()
-l --log \ -l --log \
--log-filename \ --log-filename \
-m --map \ -m --map \
-v --version \
-t --timestamp \ -t --timestamp \
--timestamp-format \ --timestamp-format \
-L --list-devices \ -L --list-devices \
-c --color \ -c --color \
-x --hex \
-v --version \
-h --help" -h --help"
# Complete the arguments to the options. # Complete the arguments to the options.
@ -90,6 +91,10 @@ _tio()
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0 return 0
;; ;;
-x | --hex)
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
-v | --version) -v | --version)
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0 return 0