mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Add plugin for hexo blog framework
This commit is contained in:
parent
cae540f899
commit
f3bbeae3c8
1 changed files with 15 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue