contrib/bash_completion
changeset 2035 107dc72880f8
parent 2034 5e7aff1b6ae1
child 2039 0c438fd25e6e
equal deleted inserted replaced
2034:5e7aff1b6ae1 2035:107dc72880f8
    27     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur"))
    27     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur"))
    28 }
    28 }
    29 
    29 
    30 _hg_tags()
    30 _hg_tags()
    31 {
    31 {
    32     local tags="$("$hg" tags 2>/dev/null |
    32     local tags="$("$hg" tags -q 2>/dev/null)"
    33 	sed -e 's/[0-9]*:[a-f0-9]\{40\}$//; s/ *$//')"
    33     local IFS=$'\n'
    34     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$tags' -- "$cur"))
    34     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$tags' -- "$cur"))
    35 }
    35 }
    36 
    36 
    37 # this is "kind of" ugly...
    37 # this is "kind of" ugly...
    38 _hg_count_non_option()
    38 _hg_count_non_option()