Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
default to nano on nix systems, since not all distros ship with vim
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Hall committed Jan 11, 2017
1 parent 870913e commit 2a77337
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/storjshare-create.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ console.log(`\n * configuration written to ${outfile}`);

if (!storjshare_create.noedit) {
console.log(' * opening in your favorite editor to tweak before running');
editor(outfile, () => {
editor(outfile, {
// NB: Not all distros ship with vim, so let's use GNU Nano
editor: process.platform === 'win32' ? null : 'nano'
}, () => {
console.log(' ...');
console.log(` * use new config: storjshare start --config ${outfile}`);
});
Expand Down

0 comments on commit 2a77337

Please sign in to comment.