##// END OF EJS Templates
Make bash_completion more robust for e.g. broken hgrc or old hg installations.
Thomas Arendsen Hein -
r1888:283d2ab1 default
parent child Browse files
Show More
@@ -15,7 +15,8 b' shopt -s extglob'
15
15
16 _hg_commands()
16 _hg_commands()
17 {
17 {
18 local commands="$("$hg" debugcomplete "$cur")"
18 local commands
19 commands="$("$hg" debugcomplete "$cur" 2>/dev/null)" || commands=""
19 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$commands' -- "$cur"))
20 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$commands' -- "$cur"))
20 }
21 }
21
22
General Comments 0
You need to be logged in to leave comments. Login now