Get aspell --mode completions from 'aspell modes' output.

This commit is contained in:
Ville Skyttä 2011-03-03 23:24:21 +02:00
parent d21e05504a
commit da2d63fb19
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
bash-completion (2.x)
[ Ville Skyttä ]
* Improve gendiff and smartctl completions.
* Improve aspell, gendiff, and smartctl completions.
* Try harder to find the correct perl executable to run the perl helper with.
* Drop rpm query support for rpm < 4.1.
* Split rpm and rpmbuild completions and improve them both.

View File

@ -37,7 +37,8 @@ _aspell()
return 0
;;
--mode)
COMPREPLY=( $( compgen -W 'none url email sgml tex' -- "$cur" ) )
COMPREPLY=( $( compgen -W "$( $1 modes 2>/dev/null | \
awk '{ print $1 }' )" -- "$cur" ) )
return 0
;;
--sug-mode)