mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-12-12 17:20:40 +01:00
batpipe: Fix colors not showing up inside less
This commit is contained in:
parent
d8532bb35a
commit
7803ecaba1
@ -115,7 +115,7 @@ BATPIPE_INSIDE_LESS=false
|
|||||||
BATPIPE_INSIDE_BAT=false
|
BATPIPE_INSIDE_BAT=false
|
||||||
TERM_WIDTH="$(term_width)"
|
TERM_WIDTH="$(term_width)"
|
||||||
|
|
||||||
if [[ "$(basename -- "$(parent_executable "$(parent_executable_pid)" | cut -f1 -d' ')")" == less ]]; then
|
if [[ "$(basename -- "$(parent_executable | cut -f1 -d' ')")" == less ]]; then
|
||||||
BATPIPE_INSIDE_LESS=true
|
BATPIPE_INSIDE_LESS=true
|
||||||
elif [[ "$(basename -- "$(parent_executable | cut -f1 -d' ')")" == "$(basename -- "$EXECUTABLE_BAT")" ]]; then
|
elif [[ "$(basename -- "$(parent_executable | cut -f1 -d' ')")" == "$(basename -- "$EXECUTABLE_BAT")" ]]; then
|
||||||
BATPIPE_INSIDE_BAT=true
|
BATPIPE_INSIDE_BAT=true
|
||||||
|
Loading…
Reference in New Issue
Block a user