Skip to content

A peer-to-peer stack for code collaboration

Use nano as the default editor. (#340)

Julian Arni5fef1ca1ac26
diff --git a/rad/prelude/io-utils.rad b/rad/prelude/io-utils.rad
index c71728c..444528d 100644
--- a/rad/prelude/io-utils.rad
+++ b/rad/prelude/io-utils.rad
@@ -19,5 +19,5 @@
(def file (unlines (shell-with-stdout! "mktemp" "")))
(put-str! file)
(write-file! file orig)
- (shell-no-stdin! (string-append "$EDITOR " file) "")
+ (shell-no-stdin! (string-append "${EDITOR:-nano} " file) "")
(read-file! file)))