Created
August 6, 2013 03:48
-
-
Save lisposter/6161859 to your computer and use it in GitHub Desktop.
hexo 新建文章自动调用sublime打开文件 放置于 script 目录中即可
This file contains hidden or 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
var spawn = require('child_process').spawn; | |
hexo.on('new', function(target){ | |
spawn('sublime', [target]); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
windows 下呢。。。