From 1bcdfe5ccefeb3f282f2747867859308b4d06aee Mon Sep 17 00:00:00 2001 From: Kevin Zhuang Date: Tue, 7 Jul 2020 11:05:08 +1000 Subject: [PATCH] chore(preview): remove unnecessary flag with bat --- helper/preview.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/preview.sh b/helper/preview.sh index 2afa7f0..c2ec354 100755 --- a/helper/preview.sh +++ b/helper/preview.sh @@ -45,14 +45,14 @@ function display_preview() { if [[ -z "${preview_first}" ]] || [[ -z "${preview_center}" ]] || [[ -z "${preview_last}" ]]; then if [[ -z "${DOTBARE_PREVIEW}" ]] && command -v bat > /dev/null; then - bat --style="${BAT_STYLE:-plain}" --color=always --pager=never "${preview_file}" + bat --color=always --pager=never "${preview_file}" exit $? fi eval "${preview_cmd}" 2> /dev/null exit 0 else if [ -z "${DOTBARE_PREVIEW}" ] && command -v bat > /dev/null; then - bat --style="${BAT_STYLE:-plain}" --color=always --pager=never \ + bat --color=always --pager=never \ --line-range="${preview_first}":"${preview_last}" --highlight-line="${preview_center}" "${preview_file}" exit $? fi