.bash_completion
changeset 1011 48975083716e
parent 1007 0077617b0deb
child 1017 0d77f5f13675
equal deleted inserted replaced
1010:1616bc25541c 1011:48975083716e
    32 # type and which complete on commands
    32 # type and which complete on commands
    33 complete -c command type which
    33 complete -c command type which
    34 
    34 
    35 # builtin completes on builtins
    35 # builtin completes on builtins
    36 complete -b builtin
    36 complete -b builtin
    37 
       
    38 _hgsyncew() {
       
    39   local cur=${COMP_WORDS[COMP_CWORD]}
       
    40   COMPREPLY=( $(compgen -W "--push --modified" -- $cur) )
       
    41   return 0
       
    42 }
       
    43 complete -F _hgsyncew -o nospace hgsyncew
       
    44 
    37 
    45 _hgsync() {
    38 _hgsync() {
    46   local cur=${COMP_WORDS[COMP_CWORD]}
    39   local cur=${COMP_WORDS[COMP_CWORD]}
    47   case $COMP_CWORD in
    40   case $COMP_CWORD in
    48     0|1)
    41     0|1)