contrib/bash_completion
changeset 20131 56df59cc4212
parent 20130 7c78c7eff119
child 20132 d14f9c4a4398
equal deleted inserted replaced
20130:7c78c7eff119 20131:56df59cc4212
    90 _hg_status()
    90 _hg_status()
    91 {
    91 {
    92     local files="$(_hg_cmd status -n$1 "glob:$cur**")"
    92     local files="$(_hg_cmd status -n$1 "glob:$cur**")"
    93     local IFS=$'\n'
    93     local IFS=$'\n'
    94     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur"))
    94     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur"))
       
    95 }
       
    96 
       
    97 _hg_branches()
       
    98 {
       
    99     local branches="$(_hg_cmd branches -q)"
       
   100     local IFS=$'\n'
       
   101     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$branches' -- "$cur"))
    95 }
   102 }
    96 
   103 
    97 _hg_bookmarks()
   104 _hg_bookmarks()
    98 {
   105 {
    99     local bookmarks="$(_hg_cmd bookmarks -q)"
   106     local bookmarks="$(_hg_cmd bookmarks -q)"