Skip to content

Commit

Permalink
lf-run: add switch for image preview via environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
XPhyro committed Nov 11, 2023
1 parent d8da980 commit 5aed24e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sh/integration/lf/lf-run
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 5aed24e

Please sign in to comment.