This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow users to set a custom editor env variable
Many programs allow a custom editor variable to override EDITOR. Now users can set that on osenv with the following code: var osenv = require('osenv') osenv.setCustomEditorVariable('MY_EDITOR') var editor = osenv.editor() If the MY_EDITOR environment variable is set, it will be used. Otherwise we follow the same rules that osenv has used before. One confusing point is that if you set the custom editor variable after calling .editor() the previous result will be cached and this will have no effect.
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters