From 7803ecaba1e78adacc277e82b2568cca007b1ba0 Mon Sep 17 00:00:00 2001 From: Ethan P Date: Sat, 21 Aug 2021 16:19:17 -0700 Subject: [PATCH] batpipe: Fix colors not showing up inside less --- src/batpipe.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/batpipe.sh b/src/batpipe.sh index 7fe6269..5b8dfa7 100755 --- a/src/batpipe.sh +++ b/src/batpipe.sh @@ -115,7 +115,7 @@ BATPIPE_INSIDE_LESS=false BATPIPE_INSIDE_BAT=false 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 elif [[ "$(basename -- "$(parent_executable | cut -f1 -d' ')")" == "$(basename -- "$EXECUTABLE_BAT")" ]]; then BATPIPE_INSIDE_BAT=true