on master help sign in
Add -i option for bash/zsh to output wrapper function
496dd29sharkdp
diagnostics/info.sh+1−1
@@ -81,7 +81,7 @@ _bat_wrapper_function_:run() {
81
81
82 *bash* | *zsh*)
82 *bash* | *zsh*)
83 if "$SHELL" --login -i -c 'type bat' 2>&1 | grep 'function' &> /dev/null; then
83 if "$SHELL" --login -i -c 'type bat' 2>&1 | grep 'function' &> /dev/null; then
84− _out_fence "$SHELL" --login -c 'declare -f bat'
84+ _out_fence "$SHELL" --login -i -c 'declare -f bat'
85 return
85 return
86 fi
86 fi
87 ;;
87 ;;