bash_completion: Use "hg paths -q" instead of piping through sed

This commit is contained in:
Thomas Arendsen Hein 2011-05-16 11:52:28 +02:00
parent 0d153cc970
commit 6fa586d534

View File

@ -68,7 +68,7 @@ _hg_commands()
_hg_paths()
{
local paths="$(_hg_cmd paths | sed -e 's/ = .*$//')"
local paths="$(_hg_cmd paths -q)"
COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$paths' -- "$cur"))
}