mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-05 08:37:14 -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
|
# text editor configuration
|
||||||
def editor_config(_env_mode):
|
def editor_config(_env_mode):
|
||||||
if _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:
|
if 'EDITOR' in environ:
|
||||||
_editor = environ['EDITOR']
|
_editor = environ['EDITOR']
|
||||||
else:
|
else:
|
||||||
_editor = 'nano'
|
_editor = 'vi'
|
||||||
else:
|
else:
|
||||||
_editor = curses_text('enter the name of your preferred text editor:\n\n\n\n\n(ctrl+g/enter to confirm)'
|
_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')
|
'\n\nthis will be used for writing notes\n\nexample input: vim')
|
||||||
|
|||||||
Reference in New Issue
Block a user