summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2021-07-01 23:10:44 +0300
committerDavid Peter <sharkdp@users.noreply.github.com>2021-07-01 22:47:00 +0200
commit8b37e62cf3fe0e8fb04a30aba1cdfa8de61a0e6b (patch)
tree3adb1bb52e952dce656560e72c52d2371552e707
parent4296d47dcbb565c2bf7785e7d24a576d945e102a (diff)
Add some more options to bash completion
https://github.com/sharkdp/bat/pull/1702#issuecomment-872452683
-rw-r--r--assets/completions/bat.bash.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/assets/completions/bat.bash.in b/assets/completions/bat.bash.in
index 7b44a5c3..43680a6c 100644
--- a/assets/completions/bat.bash.in
+++ b/assets/completions/bat.bash.in
@@ -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