Add zsh wrapper detection to info.sh

This commit is contained in:
Ethan P authored and David Peter committed 2020-04-09 09:20:03 +02:00
1 parent e037afeaca
commit 2f4ecf8fc5
1 file changed
+4 -2
+4 -2
View File
@@ -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 ;;
*)