If $EDITOR is not set, default to "vi" instead of "nano"

Former-commit-id: e07df2bf109cc0de30a88a1bfe49ec15f8e739fb
Former-commit-id: 9dc13886c901240b8f8cfe99a1181817d92161a7
This commit is contained in:
2023-07-09 13:17:50 -04:00
parent 5b9b6da341
commit a3551cc042
+2 -2
View File
@@ -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')