diff options
author | Keith Hall <keith-hall@users.noreply.github.com> | 2024-11-13 21:25:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-13 21:25:59 +0200 |
commit | 022574314f311875c3146437400f35e182b74fe4 (patch) | |
tree | ea52b658552b4db4468cc3e458ccf958bed55739 /assets/completions/bat.bash.in | |
parent | 2caeaef14bec10565a62451d92dd92362b483275 (diff) | |
parent | 8a4701f93ff296b80b813bde07002796f9ff2f1d (diff) |
Merge branch 'master' into bat_config_dir_docs
Diffstat (limited to 'assets/completions/bat.bash.in')
-rw-r--r-- | assets/completions/bat.bash.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/assets/completions/bat.bash.in b/assets/completions/bat.bash.in index f314bb25..90931f24 100644 --- a/assets/completions/bat.bash.in +++ b/assets/completions/bat.bash.in @@ -113,6 +113,13 @@ _bat() { return 0 ;; --theme) + local IFS=$'\n' + COMPREPLY=($(compgen -W "auto${IFS}auto:always${IFS}auto:system${IFS}dark${IFS}light${IFS}$("$1" --list-themes)" -- "$cur")) + __bat_escape_completions + return 0 + ;; + --theme-dark | \ + --theme-light) local IFS=$'\n' COMPREPLY=($(compgen -W "$("$1" --list-themes)" -- "$cur")) __bat_escape_completions @@ -170,6 +177,8 @@ _bat() { --map-syntax --ignored-suffix --theme + --theme-dark + --theme-light --list-themes --squeeze-blank --squeeze-limit |