.bash_completion
changeset 1017 0d77f5f13675
parent 1011 48975083716e
child 1038 79c56b8fb8e0
equal deleted inserted replaced
1016:8ba787ff5ab8 1017:0d77f5f13675
    37 
    37 
    38 _hgsync() {
    38 _hgsync() {
    39   local cur=${COMP_WORDS[COMP_CWORD]}
    39   local cur=${COMP_WORDS[COMP_CWORD]}
    40   case $COMP_CWORD in
    40   case $COMP_CWORD in
    41     0|1)
    41     0|1)
    42       COMPREPLY=( $(compgen -W "local remote pull push info --help" -- $cur) )
    42       COMPREPLY=( $(compgen -W "local remote pull push info status help --help" -- $cur) )
    43       compopt +o nospace
    43       compopt +o nospace
    44       return ;;
    44       return ;;
    45     2)
    45     2)
    46       COMPREPLY=( $(compgen -d -S / -- "$cur") )
    46       COMPREPLY=( $(compgen -d -S / -- "$cur") )
    47       return ;;
    47       return ;;