Merge pull request #221 from wizardfrag/editfix
Fix missing Helper method in edit and use $EDITOR
This commit is contained in:
commit
b565327a4a
|
@ -10,7 +10,7 @@ program
|
|||
.description("Edit config: '" + Helper.HOME + "/config.js'")
|
||||
.action(function() {
|
||||
child.spawn(
|
||||
"vi",
|
||||
process.env.EDITOR || "vi",
|
||||
[Helper.HOME + "/config.js"],
|
||||
{stdio: "inherit"}
|
||||
);
|
||||
|
|
|
@ -15,8 +15,8 @@ program
|
|||
return;
|
||||
}
|
||||
child.spawn(
|
||||
"vi",
|
||||
[Helper.resolveHomePath("users", name, "user.json")],
|
||||
process.env.EDITOR || "vi",
|
||||
[require("path").join(Helper.HOME, "users", name, "user.json")],
|
||||
{stdio: "inherit"}
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue