aboutsummaryrefslogtreecommitdiff
path: root/auria.sh
diff options
context:
space:
mode:
Diffstat (limited to 'auria.sh')
-rwxr-xr-xauria.sh8
1 files changed, 7 insertions, 1 deletions
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"