Skip to content

Commit 7803eca

Browse files
committed
batpipe: Fix colors not showing up inside less
1 parent d8532bb commit 7803eca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/batpipe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ BATPIPE_INSIDE_LESS=false
115115
BATPIPE_INSIDE_BAT=false
116116
TERM_WIDTH="$(term_width)"
117117

118-
if [[ "$(basename -- "$(parent_executable "$(parent_executable_pid)" | cut -f1 -d' ')")" == less ]]; then
118+
if [[ "$(basename -- "$(parent_executable | cut -f1 -d' ')")" == less ]]; then
119119
BATPIPE_INSIDE_LESS=true
120120
elif [[ "$(basename -- "$(parent_executable | cut -f1 -d' ')")" == "$(basename -- "$EXECUTABLE_BAT")" ]]; then
121121
BATPIPE_INSIDE_BAT=true

0 commit comments

Comments
 (0)