Mercurial > hg
comparison contrib/bash_completion @ 14332:a2f0f61a6988
bash_completion: Use "hg paths -q" instead of piping through sed
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 16 May 2011 11:52:28 +0200 |
parents | 8aea95ec128f |
children | 51f444e85734 |
comparison
equal
deleted
inserted
replaced
14331:3b9a896af09c | 14332:a2f0f61a6988 |
---|---|
66 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$commands' -- "$cur")) | 66 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$commands' -- "$cur")) |
67 } | 67 } |
68 | 68 |
69 _hg_paths() | 69 _hg_paths() |
70 { | 70 { |
71 local paths="$(_hg_cmd paths | sed -e 's/ = .*$//')" | 71 local paths="$(_hg_cmd paths -q)" |
72 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$paths' -- "$cur")) | 72 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$paths' -- "$cur")) |
73 } | 73 } |
74 | 74 |
75 _hg_repos() | 75 _hg_repos() |
76 { | 76 { |