dddffgg
bd461afd75
docs: add --quiet-empty to bash completion
2026-02-01 16:20:49 +08:00
Koichi Murase
3188a147d8
Use "-o fullquote" and "-o noquote" to escape Bash completions
2025-10-20 19:38:54 +09:00
Koichi Murase
926fbc4b13
Fix indentation of the Bash completion file
2025-10-20 17:59:48 +09:00
Keith Hall
8e90efb2b4
Add missing shell completions for various CLI arguments
2025-10-07 22:30:53 +03:00
Tau Gärtli
89ce060183
Update help, man page and completions
2024-08-18 20:32:59 +02:00
Tau Gärtli
bc42149a72
Merge color scheme options into theme / BAT_THEME
2024-08-18 14:59:14 +02:00
Tau Gärtli
b9b981f657
Generalize --detect-color-scheme to --color-scheme
2024-08-16 14:14:30 +02:00
Tau Gärtli
9a1bfe946d
Update completions and man page
2024-08-16 14:12:23 +02:00
Koichi Murase
b1cdc06430
Add --no-* options to Bash/Zsh completions
2024-07-29 12:18:40 +09:00
Koichi Murase
43a77a42f8
Add options present in --help to Bash completion
2024-07-29 12:18:40 +09:00
Anomalocaridid
b56021ffa9
make LESSOPEN support opt-in
2023-09-08 06:25:20 +02:00
Adrián Bíro
e155f56484
Clean-up bash comletion
...
"cword" is unset and even is not used in completion for other shells, so it probably shouldn't be here either. If it for some reason should be there add the directive "# shellcheck disable=SC2034" to the line above it.
2023-05-12 05:59:36 +02:00
cyqsimon
b6b9d3a629
Disable completion of cache subcommand ( #2399 )
...
* Disable completion of `cache` subcommand
* Fully removed completion code for `cache`
* Add to changelog
2022-12-18 11:46:43 +01:00
Ville Skyttä
2dbc88d3af
Improve bash completion escaping
...
`compopt -o filenames` is a cheap way to accomplish mostly wanted
behavior. However it is semantically incorrect when we are not actually
completing filenames, and has side effects -- for example adds a
trailing slash to candidates matching present dirs.
bash >= 4.1 can `printf -v` to an array index, use it instead where
available.
2022-09-11 21:54:22 +02:00
Ville Skyttä
66edfe5dff
Exclude --unbuffered from bash completions
...
It's a no-op, so there's little reason to suggest it.
2022-09-11 21:54:22 +02:00
Ville Skyttä
c816188f97
Add --style argument bash completion
2022-09-11 21:54:22 +02:00
Ville Skyttä
46bf3c1e9a
Do not offer bash filename completions with --list-languages/-themes
2022-09-11 21:54:22 +02:00
Ville Skyttä
066701d671
Add --acknowledgements and --ignored-suffix to bash completion
2022-09-11 21:54:22 +02:00
Ville Skyttä
e96cdc3b95
Split bash completion option lists over multiple lines, sync sort with --help
...
For maintainability/diffability.
2022-09-11 21:54:22 +02:00
Josh Pencheon and Ville Skyttä
ad6cae433a
fix Bash completion on macOS ( #2074 )
...
* fix Bash completion on macOS
The Homebrew-provided bash-completion is version 1.x,
which doesn't provide _init_completion. We add a standard
shim instead.
* Add entry to CHANGELOG
* Update CHANGELOG.md
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi >
* review: avoid calling _split_longopt repeatedly
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi >
2022-02-24 07:57:23 +01:00
Ville Skyttä
8b37e62cf3
Add some more options to bash completion
...
https://github.com/sharkdp/bat/pull/1702#issuecomment-872452683
2021-07-01 22:47:00 +02:00
Ville Skyttä
06c601bc7c
Depend on scop/bash-completion
...
For = option/arg separator support, improved mid-word completion
behavior, code cleanliness.
2021-06-28 11:58:03 +02:00
Ville Skyttä
229fbc1a18
Add missing comment about --theme arg escaping
2021-06-28 11:58:03 +02:00
Ville Skyttä
e05f5010da
Add bash completion
...
Closes https://github.com/sharkdp/bat/issues/1010
2021-06-28 11:58:03 +02:00