Merge pull request #800 from tchici/master

use $VISUAL environment variable for plugins
This commit is contained in:
Mischievous Meerkat 2020-11-22 21:55:08 +05:30 committed by GitHub
commit 9270d4a044
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@
# Shell: bash # Shell: bash
# Author: KlzXS # Author: KlzXS
EDITOR="${EDITOR:-vi}" EDITOR="${VISUAL:-${EDITOR:-vi}}"
TMPDIR="${TMPDIR:-/tmp}" TMPDIR="${TMPDIR:-/tmp}"
INCLUDE_HIDDEN="${INCLUDE_HIDDEN:-0}" INCLUDE_HIDDEN="${INCLUDE_HIDDEN:-0}"
VERBOSE="${VERBOSE:-0}" VERBOSE="${VERBOSE:-0}"

View file

@ -9,7 +9,7 @@
# Shell: POSIX compliant # Shell: POSIX compliant
# Author: KlzXS # Author: KlzXS
EDITOR="${EDITOR:-vi}" EDITOR="${VISUAL:-${EDITOR:-vi}}"
TMPDIR="${TMPDIR:-/tmp}" TMPDIR="${TMPDIR:-/tmp}"
printf "'f'ile / 'd'ir? " printf "'f'ile / 'd'ir? "

View file

@ -14,7 +14,7 @@
# If the size of a file has more that $size_digits digits the file will be misplaced # If the size of a file has more that $size_digits digits the file will be misplaced
# 12 digits fit files up to 931GiB # 12 digits fit files up to 931GiB
EDITOR="${EDITOR:-vi}" EDITOR="${VISUAL:-${EDITOR:-vi}}"
TMPDIR="${TMPDIR:-/tmp}" TMPDIR="${TMPDIR:-/tmp}"
size_digits=12 size_digits=12

View file

@ -5,7 +5,7 @@
# Shell: POSIX compliant # Shell: POSIX compliant
# Author: Anna Arad # Author: Anna Arad
EDITOR="${EDITOR:-vim}" EDITOR="${VISUAL:-${EDITOR:-vi}}"
is_cmd_exists () { is_cmd_exists () {
which "$1" > /dev/null 2>&1 which "$1" > /dev/null 2>&1