From 5aed24e205df0489291cfdcdb64199f39215cf04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berke=20Kocao=C4=9Flu?= Date: Sat, 11 Nov 2023 04:00:40 +0300 Subject: [PATCH] lf-run: add switch for image preview via environment variable --- src/sh/integration/lf/lf-run | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sh/integration/lf/lf-run b/src/sh/integration/lf/lf-run index 381d70e1..cd5d3480 100755 --- a/src/sh/integration/lf/lf-run +++ b/src/sh/integration/lf/lf-run @@ -4,7 +4,9 @@ set -e -[ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] && exec lf "$@" +[ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] \ + || [ -n "$LF_NO_IMAGE_PREVIEW" ] \ + && exec lf "$@" if command -v -- ueberzugpp > /dev/null 2>&1; then cleanup() {