We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8532bb commit 7803ecaCopy full SHA for 7803eca
src/batpipe.sh
@@ -115,7 +115,7 @@ BATPIPE_INSIDE_LESS=false
115
BATPIPE_INSIDE_BAT=false
116
TERM_WIDTH="$(term_width)"
117
118
-if [[ "$(basename -- "$(parent_executable "$(parent_executable_pid)" | cut -f1 -d' ')")" == less ]]; then
+if [[ "$(basename -- "$(parent_executable | cut -f1 -d' ')")" == less ]]; then
119
BATPIPE_INSIDE_LESS=true
120
elif [[ "$(basename -- "$(parent_executable | cut -f1 -d' ')")" == "$(basename -- "$EXECUTABLE_BAT")" ]]; then
121
BATPIPE_INSIDE_BAT=true
0 commit comments