# HG changeset patch # User Oleksandr Gavenko # Date 1319555099 -10800 # Node ID 3c0d218db7a355c402528f44926df80307c150c2 # Parent 420c06da8fd15bb90cff4790700e8f0a00ce660d Add completion for hgsyncew. diff -r 420c06da8fd1 -r 3c0d218db7a3 .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 +