From 1259c09a46325e4725cbfbbcd28fa44588a583a9 Mon Sep 17 00:00:00 2001 From: Wenxuan Date: Mon, 21 Jan 2019 11:39:32 +0800 Subject: [PATCH] Respect user's config for bat. Former-commit-id: 1b0254a7c6640f3ee0d43b6b60f2ef5302eccb9a --- forgit.plugin.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh index d61cd47..b45dcba 100755 --- a/forgit.plugin.zsh +++ b/forgit.plugin.zsh @@ -110,7 +110,8 @@ forgit::ignore() { [ -d $FORGIT_GI_REPO ] || forgit::ignore::update local IFS cmd args cat # https://github.com/wfxr/emoji-cli - hash bat &>/dev/null && cat='bat -l gitignore --color=always --style=numbers,grid' || cat="cat" + # hash bat &>/dev/null && cat='bat -l gitignore --color=always --style=numbers,grid' || cat="cat" + hash bat &>/dev/null && cat='bat -l gitignore --color=always' || cat="cat" cmd="$cat $FORGIT_GI_SRC/{2}{,.gitignore} 2>/dev/null" # shellcheck disable=SC2206,2207 IFS=$'\n' args=($@) && [[ $# -eq 0 ]] && args=($(forgit::ignore::list | nl -nrn -w4 -s' ' |