commit 9270d4a0443f9e4c3dd02226c1c9b2eb009c9f3e
parent be34af5aeb4bdb058b70112d36a8a1374bcd75c5
Author: Mischievous Meerkat <engineerarun@gmail.com>
Date: Sun, 22 Nov 2020 21:55:08 +0530
Merge pull request #800 from tchici/master
use $VISUAL environment variable for plugins
Diffstat:
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/plugins/.nmv b/plugins/.nmv
@@ -16,7 +16,7 @@
# Shell: bash
# Author: KlzXS
-EDITOR="${EDITOR:-vi}"
+EDITOR="${VISUAL:-${EDITOR:-vi}}"
TMPDIR="${TMPDIR:-/tmp}"
INCLUDE_HIDDEN="${INCLUDE_HIDDEN:-0}"
VERBOSE="${VERBOSE:-0}"
diff --git a/plugins/bulknew b/plugins/bulknew
@@ -9,7 +9,7 @@
# Shell: POSIX compliant
# Author: KlzXS
-EDITOR="${EDITOR:-vi}"
+EDITOR="${VISUAL:-${EDITOR:-vi}}"
TMPDIR="${TMPDIR:-/tmp}"
printf "'f'ile / 'd'ir? "
diff --git a/plugins/dups b/plugins/dups
@@ -14,7 +14,7 @@
# If the size of a file has more that $size_digits digits the file will be misplaced
# 12 digits fit files up to 931GiB
-EDITOR="${EDITOR:-vi}"
+EDITOR="${VISUAL:-${EDITOR:-vi}}"
TMPDIR="${TMPDIR:-/tmp}"
size_digits=12
diff --git a/plugins/suedit b/plugins/suedit
@@ -5,7 +5,7 @@
# Shell: POSIX compliant
# Author: Anna Arad
-EDITOR="${EDITOR:-vim}"
+EDITOR="${VISUAL:-${EDITOR:-vi}}"
is_cmd_exists () {
which "$1" > /dev/null 2>&1