From: tchici Date: Sun, 22 Nov 2020 15:54:02 +0000 (+0000) Subject: nuke plugin: use $VISUAL environment variable X-Git-Tag: v3.6~53^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=ea81864e03d6b890057d383429cff3fb963feebc;p=nnn.git nuke plugin: use $VISUAL environment variable falls back to previous behavior if $VISUAL is not set ($EDITOR then vi) --- 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