From a3551cc0422e64d1310a700007a81b64532eea71 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 9 Jul 2023 13:17:50 -0400 Subject: [PATCH] If $EDITOR is not set, default to "vi" instead of "nano" Former-commit-id: e07df2bf109cc0de30a88a1bfe49ec15f8e739fb Former-commit-id: 9dc13886c901240b8f8cfe99a1181817d92161a7 --- lib/stweak.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/stweak.py b/lib/stweak.py index 9cf8371..5d400fa 100644 --- a/lib/stweak.py +++ b/lib/stweak.py @@ -130,11 +130,11 @@ def gpg_config(): # text editor configuration def editor_config(_env_mode): if _env_mode: - # set default text editor to value of EDITOR environment variable, otherwise default to nano + # set default text editor to value of EDITOR environment variable, otherwise default to vi if 'EDITOR' in environ: _editor = environ['EDITOR'] else: - _editor = 'nano' + _editor = 'vi' else: _editor = curses_text('enter the name of your preferred text editor:\n\n\n\n\n(ctrl+g/enter to confirm)' '\n\nthis will be used for writing notes\n\nexample input: vim')