use _get_cword
This commit is contained in:
parent
d75875637b
commit
f3cbf74ab8
@ -19,7 +19,7 @@ _xm()
|
|||||||
local cur prev command options
|
local cur prev command options
|
||||||
|
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
cur=${COMP_WORDS[COMP_CWORD]}
|
cur=`_get_cword`
|
||||||
|
|
||||||
commands='console create new delete destroy domid domname dump-core \
|
commands='console create new delete destroy domid domname dump-core \
|
||||||
list mem-max mem-set migrate pause reboot rename restore \
|
list mem-max mem-set migrate pause reboot rename restore \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user