From 56177d4c37ec9ebaa386b7c80b55b12a4b534818 Mon Sep 17 00:00:00 2001 From: Einhard Leichtfuß Date: Mon, 2 Apr 2018 05:57:59 +0200 Subject: Use $VISUAL, if available Also, add a few things TODO. --- auria.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'auria.sh') diff --git a/auria.sh b/auria.sh index 1eb9ac5..d7bbfc3 100755 --- a/auria.sh +++ b/auria.sh @@ -100,7 +100,13 @@ typeset -a devel_pkgs=() typeset -i curl_connect_timeout=5 typeset -i curl_max_time=20 -test -n "$EDITOR" && editor="$EDITOR" +if test -v VISUAL +then + editor="$VISUAL" +elif test -v EDITOR +then + editor="$EDITOR" +fi # Source configuration files. test -f "$global_conffile" && . "$global_conffile" -- cgit v1.2.3