File: vcs.bash

package info (click to toggle)
ros-vcstool 0.3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 556 kB
  • sloc: python: 3,432; sh: 22; makefile: 19; csh: 1
file content (12 lines) | stat: -rw-r--r-- 226 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
function _vcs()
{
    local cur
    COMPREPLY=()
    cur=${COMP_WORDS[COMP_CWORD]}

    if [ $COMP_CWORD -eq 1 ]; then
        COMPREPLY=( $( compgen -W "`vcs --commands`" -- $cur ))
    fi
}

complete -o dirnames -F _vcs vcs