mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-29 05:16:27 -04:00
If $EDITOR is not set, default to "vi" instead of "nano"
Former-commit-id: e07df2bf109cc0de30a88a1bfe49ec15f8e739fb Former-commit-id: 9dc13886c901240b8f8cfe99a1181817d92161a7
This commit is contained in:
+2
-2
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user