From 2f4ecf8fc5492bfbb6753983e32d7e45163c5096 Mon Sep 17 00:00:00 2001 From: Ethan P Date: Tue, 3 Mar 2020 13:39:16 -0800 Subject: [PATCH] Add zsh wrapper detection to info.sh --- diagnostics/info.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/diagnostics/info.sh b/diagnostics/info.sh index dbc1ec97..18098840 100755 --- a/diagnostics/info.sh +++ b/diagnostics/info.sh @@ -73,11 +73,13 @@ _bat_wrapper_function_:run() { *fish*) if "$SHELL" --login -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then _out_fence "$SHELL" --login -c 'functions bat' + return fi ;; - *bash*) + *bash*|*zsh*) if "$SHELL" --login -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then - _out_fence "$SHELL" --login -c 'declare -f bat' + _out_fence "$SHELL" --login -i -c 'declare -f bat' + return fi ;; *)