diff options
author | Ethan P <eth-p+git@hidden.email> | 2020-03-03 13:39:16 -0800 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-04-09 09:20:03 +0200 |
commit | 2f4ecf8fc5492bfbb6753983e32d7e45163c5096 (patch) | |
tree | a1ca4f952154319b7be771c5667266bd896fa481 | |
parent | e037afeacaa33ce08e08dd123c13a26e3d8067e1 (diff) |
Add zsh wrapper detection to info.sh
-rwxr-xr-x | diagnostics/info.sh | 6 |
1 files 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 ;; *) |