commit ea81864e03d6b890057d383429cff3fb963feebc
parent 9e3bd377b0c721ec9abc2040f5396e39560aa8d1
Author: tchici <tchici884@gmail.com>
Date: Sun, 22 Nov 2020 15:54:02 +0000
nuke plugin: use $VISUAL environment variable
falls back to previous behavior if $VISUAL is not set ($EDITOR then vi)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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