Add some more options to bash completion

https://github.com/sharkdp/bat/pull/1702#issuecomment-872452683
This commit is contained in:
Ville Skyttä 2021-07-01 23:10:44 +03:00 committed by David Peter
parent 4296d47dcb
commit 8b37e62cf3

View File

@ -32,8 +32,9 @@ _bat() {
;;
-H | --highlight-line | --diff-context | --tabs | --terminal-width | \
-m | --map-syntax | --style | --line-range | -h | --help | -V | \
--version)
# argument required but no completion available, or argument
--version | --diagnostic | --config-file | --config-dir | \
--cache-dir | --generate-config-file)
# argument required but no completion available, or option
# causes an exit
return 0
;;
@ -74,7 +75,9 @@ _bat() {
--terminal-width --number --color --italic-text
--decorations --paging --pager --map-syntax --theme
--list-themes --style --line-range --list-languages
--help --version
--help --version --force-colorization --unbuffered
--diagnostic --config-file --config-dir --cache-dir
--generate-config-file
" -- "$cur"))
return 0
fi