Add -i option for bash/zsh to output wrapper function

This commit is contained in:
sharkdp authored and David Peter committed 2020-04-09 09:20:03 +02:00
1 parent 116d76a00f
commit 496dd29cb9
1 file changed
+1 -1
+1 -1
View File
@@ -81,7 +81,7 @@ _bat_wrapper_function_:run() {
*bash* | *zsh*)
if "$SHELL" --login -i -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
;;