mirror of
https://github.com/sharkdp/bat
synced 2026-08-10 20:01:45 +00:00
Always use 'batcat' in info.sh, if needed
This commit is contained in:
Vendored
+1
-1
@@ -58,7 +58,7 @@ _bat_:run() {
|
|||||||
_out "$BAT" --version
|
_out "$BAT" --version
|
||||||
_out env | grep '^BAT_\|^PAGER='
|
_out env | grep '^BAT_\|^PAGER='
|
||||||
|
|
||||||
local cache_dir="$(bat --cache-dir)"
|
local cache_dir="$($BAT --cache-dir)"
|
||||||
if [[ -f "${cache_dir}/syntaxes.bin" ]]; then
|
if [[ -f "${cache_dir}/syntaxes.bin" ]]; then
|
||||||
_print_command "$BAT" "--list-languages"
|
_print_command "$BAT" "--list-languages"
|
||||||
echo "Found custom syntax set."
|
echo "Found custom syntax set."
|
||||||
|
|||||||
Reference in New Issue
Block a user