Skip to content

Instantly share code, notes, and snippets.

@zippera
Created April 6, 2014 05:58
Show Gist options
  • Save zippera/10002048 to your computer and use it in GitHub Desktop.
Save zippera/10002048 to your computer and use it in GitHub Desktop.
一个zsh 的 shell 脚本,执行方式是`zsh hexo.sh title`,利用 hexo 创建一个文档并打开。
#!/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