Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Allow users to set a custom editor env variable #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 22, 2014

  1. 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.
    kelsin committed Nov 22, 2014
    Configuration menu
    Copy the full SHA
    a04a3e7 View commit details
    Browse the repository at this point in the history