contrib/bash_completion
changeset 14332 a2f0f61a6988
parent 13509 8aea95ec128f
child 14374 51f444e85734
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 {