mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-04 12:22:28 +01:00
Add -i option for bash/zsh to output wrapper function
This commit is contained in:
@@ -81,7 +81,7 @@ _bat_wrapper_function_:run() {
|
|||||||
|
|
||||||
*bash* | *zsh*)
|
*bash* | *zsh*)
|
||||||
if "$SHELL" --login -i -c 'type bat' 2>&1 | grep 'function' &> /dev/null; then
|
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
|
return
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user