mirror of
https://github.com/sharkdp/bat.git
synced 2025-10-24 20:53:55 +01:00
Fix indentation of the Bash completion file
This commit is contained in:
16
assets/completions/bat.bash.in
vendored
16
assets/completions/bat.bash.in
vendored
@@ -66,7 +66,7 @@ _bat() {
|
|||||||
printf "%s\n" "$lang"
|
printf "%s\n" "$lang"
|
||||||
done
|
done
|
||||||
)" -- "$cur"))
|
)" -- "$cur"))
|
||||||
__bat_escape_completions
|
__bat_escape_completions
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-H | --highlight-line | \
|
-H | --highlight-line | \
|
||||||
@@ -130,16 +130,16 @@ _bat() {
|
|||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
--theme)
|
--theme)
|
||||||
local IFS=$'\n'
|
local IFS=$'\n'
|
||||||
COMPREPLY=($(compgen -W "auto${IFS}auto:always${IFS}auto:system${IFS}dark${IFS}light${IFS}$("$1" --list-themes)" -- "$cur"))
|
COMPREPLY=($(compgen -W "auto${IFS}auto:always${IFS}auto:system${IFS}dark${IFS}light${IFS}$("$1" --list-themes)" -- "$cur"))
|
||||||
__bat_escape_completions
|
__bat_escape_completions
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
--theme-dark | \
|
--theme-dark | \
|
||||||
--theme-light)
|
--theme-light)
|
||||||
local IFS=$'\n'
|
local IFS=$'\n'
|
||||||
COMPREPLY=($(compgen -W "$("$1" --list-themes)" -- "$cur"))
|
COMPREPLY=($(compgen -W "$("$1" --list-themes)" -- "$cur"))
|
||||||
__bat_escape_completions
|
__bat_escape_completions
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
--style)
|
--style)
|
||||||
@@ -158,7 +158,7 @@ _bat() {
|
|||||||
numbers
|
numbers
|
||||||
snip
|
snip
|
||||||
)
|
)
|
||||||
# shellcheck disable=SC2016
|
# shellcheck disable=SC2016
|
||||||
if declare -F _comp_delimited >/dev/null 2>&1; then
|
if declare -F _comp_delimited >/dev/null 2>&1; then
|
||||||
# bash-completion > 2.11
|
# bash-completion > 2.11
|
||||||
_comp_delimited , -W '"${styles[@]}"'
|
_comp_delimited , -W '"${styles[@]}"'
|
||||||
|
|||||||
Reference in New Issue
Block a user