oh-my-zsh/plugins/hexo/hexo.plugin.zsh
2017-01-09 17:25:14 +03:30

16 lines
262 B
Bash

# hexo basic command completion
_hexo_get_command_list () {
hexo --no-ansi | awk '/(--|^ +[a-z]+)/{ print $1 }'
}
_hexo () {
compadd `_hexo_get_command_list`
}
compdef _hexo hexo
alias hes="hexo server"
alias heg="hexo generate"
alias hed="hexo deploy"