Created
April 6, 2014 05:58
-
-
Save zippera/10002048 to your computer and use it in GitHub Desktop.
一个zsh 的 shell 脚本,执行方式是`zsh hexo.sh title`,利用 hexo 创建一个文档并打开。
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
#!/bin/zsh | |
#for hexo | |
cd ~/Documents/zipperary | |
hexo n "$1" | |
cd source/_posts/ | |
file=`ls -rt | tail -1`&&open $file -a Mou |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment