mirror of
https://github.com/sharkdp/bat.git
synced 2024-12-27 00:38:52 +01:00
Add some more options to bash completion
https://github.com/sharkdp/bat/pull/1702#issuecomment-872452683
This commit is contained in:
parent
4296d47dcb
commit
8b37e62cf3
9
assets/completions/bat.bash.in
vendored
9
assets/completions/bat.bash.in
vendored
@ -32,8 +32,9 @@ _bat() {
|
|||||||
;;
|
;;
|
||||||
-H | --highlight-line | --diff-context | --tabs | --terminal-width | \
|
-H | --highlight-line | --diff-context | --tabs | --terminal-width | \
|
||||||
-m | --map-syntax | --style | --line-range | -h | --help | -V | \
|
-m | --map-syntax | --style | --line-range | -h | --help | -V | \
|
||||||
--version)
|
--version | --diagnostic | --config-file | --config-dir | \
|
||||||
# argument required but no completion available, or argument
|
--cache-dir | --generate-config-file)
|
||||||
|
# argument required but no completion available, or option
|
||||||
# causes an exit
|
# causes an exit
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
@ -74,7 +75,9 @@ _bat() {
|
|||||||
--terminal-width --number --color --italic-text
|
--terminal-width --number --color --italic-text
|
||||||
--decorations --paging --pager --map-syntax --theme
|
--decorations --paging --pager --map-syntax --theme
|
||||||
--list-themes --style --line-range --list-languages
|
--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"))
|
" -- "$cur"))
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user