bash_completion: added -o filename option to _hg_status (issue3101)

This commit is contained in:
Jesus Espino Garcia 2012-01-21 00:40:18 +01:00
parent 489da655c0
commit 2574ec2be2

View File

@ -84,6 +84,7 @@ _hg_status()
{
local files="$(_hg_cmd status -n$1 .)"
local IFS=$'\n'
compopt -o filenames 2>/dev/null
COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur"))
}