Skip to content

Commit

Permalink
switch to EDITOR env var
Browse files Browse the repository at this point in the history
  • Loading branch information
newswangerd committed Nov 22, 2022
1 parent 6123e85 commit 12bcab1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/oci_env/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,5 @@ def poll(args, client):


def edit_env(args):
editor = os.getenv("OCI_ENV_EDITOR", "vim")
editor = os.getenv("EDITOR", "vim")
subprocess.call([editor, get_env_file(get_oci_env_path(), args.env_file)])
2 changes: 1 addition & 1 deletion client/oci_env/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def parse_edit_env(subparsers):
'edit-env',
help=(
'Edit your current environment file in vim. To change the default editor, set the '
'OCI_ENV_EDITOR environment variable to the path for the binary of your choosing.'
'EDITOR environment variable to the path for the binary of your choosing.'
)
)
parser.set_defaults(func=edit_env, no_init_client=True)
Expand Down

0 comments on commit 12bcab1

Please sign in to comment.