new rospack command added to bash and zsh tab completion

This commit is contained in:
Thibault Kruse 2012-02-14 16:41:21 +00:00
parent 37c8a9e17b
commit 6097501130
2 changed files with 2 additions and 2 deletions

View File

@ -436,7 +436,7 @@ function _roscomplete_rospack {
arg="${COMP_WORDS[COMP_CWORD]}" arg="${COMP_WORDS[COMP_CWORD]}"
if [[ $COMP_CWORD == 1 ]]; then if [[ $COMP_CWORD == 1 ]]; then
opts="help find list list-names langs depends depends-manifests depends1 depends-indent depends-why rosdep rosdep0 vcs vcs0 depends-on depends-on1 export plugins cflags-only-I cflags-only-other libs-only-L libs-only-l libs-only-other profile" opts="help find list list-names list-duplicates langs depends depends-manifests depends1 depends-indent depends-msgsrv depends-why rosdep rosdep0 vcs vcs0 depends-on depends-on1 export plugins cflags-only-I cflags-only-other libs-only-L libs-only-l libs-only-other profile"
COMPREPLY=($(compgen -W "$opts" -- ${arg})) COMPREPLY=($(compgen -W "$opts" -- ${arg}))
else else
opts=`rospack list-names` opts=`rospack list-names`

View File

@ -235,7 +235,7 @@ function _roscomplete_rosbag {
function _roscomplete_rospack { function _roscomplete_rospack {
reply=() reply=()
if [[ ${CURRENT} == 2 ]]; then if [[ ${CURRENT} == 2 ]]; then
opts="help find list list-names langs depends depends-manifests depends1 depends-indent depends-why rosdep rosdep0 vcs vcs0 depends-on depends-on1 export plugins cflags-only-I cflags-only-other libs-only-L libs-only-l libs-only-other profile" opts="help find list list-names list-duplicates langs depends depends-manifests depends1 depends-indent depends-msgsrv depends-why rosdep rosdep0 vcs vcs0 depends-on depends-on1 export plugins cflags-only-I cflags-only-other libs-only-L libs-only-l libs-only-other profile"
reply=(${=opts}) reply=(${=opts})
else else
opts=`rospack list-names` opts=`rospack list-names`