add rosnode cleanup to autocompletion

This commit is contained in:
Dirk Thomas 2013-01-08 23:02:07 +00:00
parent a2ceb859ae
commit c7de6a1aa6
2 changed files with 2 additions and 2 deletions

View File

@ -555,7 +555,7 @@ function _roscomplete_rosnode {
arg="${COMP_WORDS[COMP_CWORD]}"
if [[ $COMP_CWORD == 1 ]]; then
opts="ping list info machine kill"
opts="ping list info machine kill cleanup"
COMPREPLY=($(compgen -W "$opts" -- ${arg}))
elif [[ $COMP_CWORD == 2 ]]; then
case ${COMP_WORDS[1]} in

View File

@ -393,7 +393,7 @@ function _roscomplete_rosnode {
reply=()
if [[ ${CURRENT} == 2 ]]; then
opts="ping list info machine kill"
opts="ping list info machine kill cleanup"
reply=(${=opts})
elif [[ ${CURRENT} == 3 ]]; then
case ${=${(s: :)words}[2]} in