Mercurial > hg
comparison contrib/zsh_completion @ 11646:91af149b5cd7 stable
bash/zsh completion: use HGPLAIN when invoking hg (issue2297)
author | Brodie Rao <brodie@bitheap.org> |
---|---|
date | Wed, 21 Jul 2010 17:06:00 -0400 |
parents | 64a6a896e5fb |
children | 46039b2af349 |
comparison
equal
deleted
inserted
replaced
11645:88b89ace643b | 11646:91af149b5cd7 |
---|---|
375 _hg_remote_opts=( | 375 _hg_remote_opts=( |
376 '(--ssh -e)'{-e+,--ssh}'[specify ssh command to use]:' | 376 '(--ssh -e)'{-e+,--ssh}'[specify ssh command to use]:' |
377 '--remotecmd[specify hg command to run on the remote side]:') | 377 '--remotecmd[specify hg command to run on the remote side]:') |
378 | 378 |
379 _hg_cmd() { | 379 _hg_cmd() { |
380 _call_program hg hg --config ui.verbose=0 --config defaults."$1"= \ | 380 _call_program hg HGPLAIN=1 hg "$_hg_cmd_globals[@]" "$@" 2> /dev/null |
381 "$_hg_cmd_globals[@]" "$@" 2> /dev/null | |
382 } | 381 } |
383 | 382 |
384 _hg_cmd_add() { | 383 _hg_cmd_add() { |
385 _arguments -s -w : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts \ | 384 _arguments -s -w : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts \ |
386 '*:unknown files:_hg_unknown' | 385 '*:unknown files:_hg_unknown' |