# HG changeset patch # User Thomas Arendsen Hein # Date 2011-05-16 09:52:28 # Node ID a2f0f61a69880f0ff22d36b4d9b288a80df311bd # Parent 3b9a896af09c33bf34fcea4a173d59b80cfbed7c bash_completion: Use "hg paths -q" instead of piping through sed diff --git a/contrib/bash_completion b/contrib/bash_completion --- a/contrib/bash_completion +++ b/contrib/bash_completion @@ -68,7 +68,7 @@ shopt -s extglob _hg_paths() { - local paths="$(_hg_cmd paths | sed -e 's/ = .*$//')" + local paths="$(_hg_cmd paths -q)" COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$paths' -- "$cur")) }