Set default editor to vi if EDITOR is not set.
This commit is contained in:
parent
3303365d12
commit
c256d5d1ac
@ -93,7 +93,7 @@
|
|||||||
from spack.util.executable import Executable, which
|
from spack.util.executable import Executable, which
|
||||||
|
|
||||||
# User's editor from the environment
|
# 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 tool for fetching files.
|
||||||
curl = which("curl", required=True)
|
curl = which("curl", required=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user