equal
deleted
inserted
replaced
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) |