Fix HOMEBREW_BAT_CONFIG_PATH hint

`HOMEBREW_BAT_CONFIG_PATH` should respect [`BAT_CONFIG_PATH`](https://github.com/sharkdp/bat#configuration-file), in the same way that `HOMEBREW_BAT_THEME` [reflects](https://github.com/Homebrew/brew/pull/13385/files#diff-a8ebbe0466e56bdb9c7ebc74d5ffbd383b8c0902fcb5146cb1960e3d69dadeb1R78) `BAT_THEME`.

Previous, for context:
https://github.com/Homebrew/brew/pull/7488
https://github.com/Homebrew/brew/pull/11975
https://github.com/Homebrew/brew/pull/13385
This commit is contained in:
Daniel Bayley 2023-02-09 18:47:19 +00:00
parent c9496ae50f
commit 2ff90c3232
4 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@ module Homebrew
}, },
HOMEBREW_BAT_CONFIG_PATH: { HOMEBREW_BAT_CONFIG_PATH: {
description: "Use this as the `bat` configuration file.", description: "Use this as the `bat` configuration file.",
default_text: "`$HOME/.config/bat/config`.", default_text: "`$BAT_CONFIG_PATH`.",
}, },
HOMEBREW_BAT_THEME: { HOMEBREW_BAT_THEME: {
description: "Use this as the `bat` theme for syntax highlighting.", description: "Use this as the `bat` theme for syntax highlighting.",

View File

@ -85,7 +85,7 @@ HOMEBREW_LIBRARY="${HOMEBREW_REPOSITORY}/Library"
# Copy and export all HOMEBREW_* variables previously mentioned in # Copy and export all HOMEBREW_* variables previously mentioned in
# manpage or used elsewhere by Homebrew. # manpage or used elsewhere by Homebrew.
for VAR in BAT_THEME BROWSER DISPLAY EDITOR NO_COLOR TMUX DBUS_SESSION_BUS_ADDRESS XDG_RUNTIME_DIR CODESPACES for VAR in BAT_CONFIG_PATH BAT_THEME BROWSER DISPLAY EDITOR NO_COLOR TMUX DBUS_SESSION_BUS_ADDRESS XDG_RUNTIME_DIR CODESPACES
do do
# Skip if variable value is empty. # Skip if variable value is empty.
[[ -z "${!VAR:-}" ]] && continue [[ -z "${!VAR:-}" ]] && continue

View File

@ -2009,7 +2009,7 @@ example, run `export HOMEBREW_NO_INSECURE_REDIRECT=1` rather than just
- `HOMEBREW_BAT_CONFIG_PATH` - `HOMEBREW_BAT_CONFIG_PATH`
<br>Use this as the `bat` configuration file. <br>Use this as the `bat` configuration file.
*Default:* `$HOME/.config/bat/config`. *Default:* `$BAT_CONFIG_PATH`.
- `HOMEBREW_BAT_THEME` - `HOMEBREW_BAT_THEME`
<br>Use this as the `bat` theme for syntax highlighting. <br>Use this as the `bat` theme for syntax highlighting.

View File

@ -2876,7 +2876,7 @@ If set, use \fBbat\fR for the \fBbrew cat\fR command\.
Use this as the \fBbat\fR configuration file\. Use this as the \fBbat\fR configuration file\.
. .
.IP .IP
\fIDefault:\fR \fB$HOME/\.config/bat/config\fR\. \fIDefault:\fR \fB$BAT_CONFIG_PATH\fR\.
. .
.TP .TP
\fBHOMEBREW_BAT_THEME\fR \fBHOMEBREW_BAT_THEME\fR