From 8b37e62cf3fe0e8fb04a30aba1cdfa8de61a0e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Thu, 1 Jul 2021 23:10:44 +0300 Subject: [PATCH] Add some more options to bash completion https://github.com/sharkdp/bat/pull/1702#issuecomment-872452683 --- assets/completions/bat.bash.in | 9 ++++++--- 1 file 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