mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-07 05:31:09 +00:00
Add zsh wrapper detection to info.sh
This commit is contained in:
parent
e037afeaca
commit
2f4ecf8fc5
@ -73,11 +73,13 @@ _bat_wrapper_function_:run() {
|
|||||||
*fish*)
|
*fish*)
|
||||||
if "$SHELL" --login -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then
|
if "$SHELL" --login -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then
|
||||||
_out_fence "$SHELL" --login -c 'functions bat'
|
_out_fence "$SHELL" --login -c 'functions bat'
|
||||||
|
return
|
||||||
fi ;;
|
fi ;;
|
||||||
|
|
||||||
*bash*)
|
*bash*|*zsh*)
|
||||||
if "$SHELL" --login -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then
|
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 ;;
|
fi ;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user