From ea81864e03d6b890057d383429cff3fb963feebc Mon Sep 17 00:00:00 2001 From: tchici Date: Sun, 22 Nov 2020 15:54:02 +0000 Subject: [PATCH] nuke plugin: use $VISUAL environment variable falls back to previous behavior if $VISUAL is not set ($EDITOR then vi) --- plugins/nuke | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nuke b/plugins/nuke index b7836330..587db698 100755 --- a/plugins/nuke +++ b/plugins/nuke @@ -76,7 +76,7 @@ IMAGE_CACHE_PATH="$(dirname "$1")"/.thumbs FPATH="$1" FNAME=$(basename "$1") -EDITOR="${EDITOR:-vi}" +EDITOR="${VISUAL:-${EDITOR:-vi}}" PAGER="${PAGER:-less -R}" ext="${FNAME##*.}" if [ -n "$ext" ]; then