[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-66-ga958ccd
Ville Skyttä
ville.skytta at iki.fi
Fri Nov 25 18:03:42 UTC 2011
The following commit has been merged in the master branch:
commit bcf41c74c2528aa76fb01c2178585135ec9e5dbd
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Fri Nov 25 19:59:35 2011 +0200
declare, typeset: Use _parse_usage.
diff --git a/completions/function b/completions/function
index e12ffff..e8e4d75 100644
--- a/completions/function
+++ b/completions/function
@@ -9,7 +9,7 @@ _function()
if [[ $prev == -f ]]; then
COMPREPLY=( $( compgen -A function -- "$cur" ) )
elif [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '-a -f -F -i -r -x -p' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
fi
elif [[ $cword -eq 1 ]]; then
COMPREPLY=( $( compgen -A function -- "$cur" ) )
--
bash-completion
More information about the Bash-completion-commits
mailing list