mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-30 09:40:09 +00:00
Add dynamic autocompletion
This commit is contained in:
parent
8c40604e14
commit
63115760d2
1 changed files with 1 additions and 27 deletions
|
@ -6,33 +6,7 @@
|
|||
# Author: Dimensi0n | Erwan ROUSSEL
|
||||
|
||||
_adonis() {
|
||||
local -a subcmds
|
||||
|
||||
subcmds=(
|
||||
'addon:Create a new AdonisJs addon'
|
||||
'install:'
|
||||
'new'
|
||||
'repl'
|
||||
'serve'
|
||||
'key\\:generate'
|
||||
'make\\:command'
|
||||
'make\\:controller'
|
||||
'make\\:ehandler'
|
||||
'make\\:exception'
|
||||
'make\\:hook'
|
||||
'make\\:listener'
|
||||
'make\\:middleware'
|
||||
'make\\:migration'
|
||||
'make\\:model'
|
||||
'make\\:provider'
|
||||
'make\\:seed'
|
||||
'make\\:trait'
|
||||
'make\\:view'
|
||||
'route\\:list'
|
||||
'run\\:instructions'
|
||||
)
|
||||
|
||||
_describe 'adonis' subcmds
|
||||
compadd `adonis | cut -d " " -f 3 | sed -E "s/.\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" | tail -n+7 | sed '/^\s*$/d'`
|
||||
}
|
||||
|
||||
compdef _adonis adonis
|
Loading…
Reference in a new issue