on master help sign in
Add zsh wrapper detection to info.sh
commit2f4ecf8fc5492bfbb6753983e32d7e45163c5096 authorEthan P <eth-p+git@hidden.email> dateTue 3 Mar 2020, 13:39 (7 years ago) parente037afe
1 file changed+4−2
diagnostics/info.sh+4−2
diagnostics/info.sh+4−2
@@ -73,11 +73,13 @@ _bat_wrapper_function_:run() {
7373 *fish*)
7474 if "$SHELL" --login -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then
7575 _out_fence "$SHELL" --login -c 'functions bat'
76+ return
7677 fi ;;
7778
78− *bash*)
79+ *bash*|*zsh*)
7980 if "$SHELL" --login -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then
80− _out_fence "$SHELL" --login -c 'declare -f bat'
81+ _out_fence "$SHELL" --login -i -c 'declare -f bat'
82+ return
8183 fi ;;
8284
8385 *)