Add plugin for hexo blog framework
This commit is contained in:
parent
cae540f899
commit
f3bbeae3c8
15
plugins/hexo/hexo.plugin.zsh
Normal file
15
plugins/hexo/hexo.plugin.zsh
Normal 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"
|
Loading…
Reference in New Issue
Block a user