Shell auto-completion for --theme
list the default theme incorrectly
#3073
Labels
bug
Something isn't working
--theme
list the default theme incorrectly
#3073
(not at all severe)
When using auto-complete to complete the default theme in any shell with supported completions (I've tested fish, zsh and bash) the default theme is completed as
Monokai Extended (default)
instead ofMonokai Extended
.This is because the completion scripts use
bat --list-themes | cat
to get the list of themes.#2937 changed the basic output to include the
(default)
suffix which breaks the completions.What steps will reproduce the bug?
bat --theme Monokai\ Extended
and trigger auto-complete (press tab)What happens?
The suggestions include
Monokai Extended (default)
(not a valid theme name)What did you expect to happen instead?
The suggestions should include
Monokai Extended
instead.How did you install
bat
?From source: b662fec
The text was updated successfully, but these errors were encountered: