Add completion for hgsyncew.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 25 Oct 2011 18:04:59 +0300
changeset 235 3c0d218db7a3
parent 234 420c06da8fd1
child 236 8469af3b5d40
Add completion for hgsyncew.
.bashrc
--- a/.bashrc	Sun Oct 23 17:04:24 2011 +0300
+++ b/.bashrc	Tue Oct 25 18:04:59 2011 +0300
@@ -202,3 +202,10 @@
 # builtin completes on builtins
 complete -b builtin
 
+_hgsyncew() {
+  local curr=${COMP_WORDS[$COMP_CWORD]}
+  COMPREPLY=( $(compgen -W "--push" -- $curr) )
+  return 0
+}
+complete -F _hgsyncew -o nospace hgsyncew
+