.bashrc
changeset 237 ff30a2d60ee6
parent 236 8469af3b5d40
child 239 8f3d4826aec2
equal deleted inserted replaced
236:8469af3b5d40 237:ff30a2d60ee6
   201 
   201 
   202 # builtin completes on builtins
   202 # builtin completes on builtins
   203 complete -b builtin
   203 complete -b builtin
   204 
   204 
   205 _hgsyncew() {
   205 _hgsyncew() {
   206   local curr=${COMP_WORDS[$COMP_CWORD]}
   206   local cur=${COMP_WORDS[$COMP_CWORD]}
   207   COMPREPLY=( $(compgen -W "--push" -- $curr) )
   207   COMPREPLY=( $(compgen -W "--push" -- $cur) )
   208   return 0
   208   return 0
   209 }
   209 }
   210 complete -F _hgsyncew -o nospace hgsyncew
   210 complete -F _hgsyncew -o nospace hgsyncew
   211 
   211 
   212 _pathsearch() {
   212 _pathsearch() {