Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use editor if present on $PATH. #37

Merged
merged 4 commits into from
Apr 20, 2020
Merged

Use editor if present on $PATH. #37

merged 4 commits into from
Apr 20, 2020

Conversation

rwjblue
Copy link
Collaborator

@rwjblue rwjblue commented Apr 20, 2020

On Debian / Ubuntu based systems editor is often available on the $PATH pointing to the currently configured editor.

This updates the launchEditor: true value to use $EDITOR first then fall back to editor if it is present and available on $PATH.

Fixes #34

/cc @jelhan

@rwjblue rwjblue added the enhancement New feature or request label Apr 20, 2020
In CI we run on Ubuntu systems that naturally have a `editor` set, this
ensures that we do *not* get the native system `editor` (because we are
trying to test that scenario explicitly).
@rwjblue rwjblue merged commit 010e988 into master Apr 20, 2020
@rwjblue rwjblue deleted the launch-editor-editor branch April 20, 2020 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fallback to editor if $EDITOR is not set
1 participant