Add plugin for hexo blog framework

This commit is contained in:
Misagh 2017-01-09 17:25:14 +03:30
parent cae540f899
commit f3bbeae3c8
No known key found for this signature in database
GPG Key ID: AF20B7EB10CF8D09

View File

@ -0,0 +1,15 @@
# 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"