Add --no-* options to Bash/Zsh completions

This commit is contained in:
Koichi Murase 2024-06-10 07:52:42 +09:00
parent 83a15ac05f
commit b1cdc06430
2 changed files with 4 additions and 0 deletions

View File

@ -186,6 +186,9 @@ _bat() {
--config-dir --config-dir
--config-file --config-file
--generate-config-file --generate-config-file
--no-config
--no-custom-assets
--no-lessopen
" -- "$cur")) " -- "$cur"))
return 0 return 0
fi fi

View File

@ -48,6 +48,7 @@ _{{PROJECT_EXECUTABLE}}_main() {
default auto full plain changes header header-filename header-filesize grid rule numbers snip' default auto full plain changes header header-filename header-filesize grid rule numbers snip'
\*{-r+,--line-range=}'[only print the specified line range]:start\:end' \*{-r+,--line-range=}'[only print the specified line range]:start\:end'
'(* -)'{-L,--list-languages}'[display all supported languages]' '(* -)'{-L,--list-languages}'[display all supported languages]'
-P'[disable paging]'
"--no-config[don't use the configuration file]" "--no-config[don't use the configuration file]"
"--no-custom-assets[don't load custom assets]" "--no-custom-assets[don't load custom assets]"
'(--no-lessopen)'--lessopen'[enable the $LESSOPEN preprocessor]' '(--no-lessopen)'--lessopen'[enable the $LESSOPEN preprocessor]'