summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2014-06-22 10:05:05 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2014-06-22 12:50:35 -0700
commitc256d5d1ac15a5c04788461c646e3350a7882b5e (patch)
tree7b7dceb2d63f57e6e5f1aa559d2946a2b6dc793a
parent3303365d12004777d6b5ba95ac7c334ba1848b4a (diff)
downloadspack-c256d5d1ac15a5c04788461c646e3350a7882b5e.tar.gz
spack-c256d5d1ac15a5c04788461c646e3350a7882b5e.tar.bz2
spack-c256d5d1ac15a5c04788461c646e3350a7882b5e.tar.xz
spack-c256d5d1ac15a5c04788461c646e3350a7882b5e.zip
Set default editor to vi if EDITOR is not set.
-rw-r--r--lib/spack/spack/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/__init__.py b/lib/spack/spack/__init__.py
index 88375d02cd..6046663ea8 100644
--- a/lib/spack/spack/__init__.py
+++ b/lib/spack/spack/__init__.py
@@ -93,7 +93,7 @@ spack_version = Version("1.0")
from spack.util.executable import Executable, which
# User's editor from the environment
-editor = Executable(os.environ.get("EDITOR", ""))
+editor = Executable(os.environ.get("EDITOR", "vi"))
# Curl tool for fetching files.
curl = which("curl", required=True)