[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-28-gc60896e

Ville Skyttä ville.skytta at iki.fi
Thu Mar 3 21:26:35 UTC 2011


The following commit has been merged in the master branch:
commit da2d63fb192d0f97486a07013c0e16f429189196
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Thu Mar 3 23:24:21 2011 +0200

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

diff --git a/CHANGES b/CHANGES
index 55b3b78..fd0937c 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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.
diff --git a/completions/aspell b/completions/aspell
index 5254eee..702f52f 100644
--- a/completions/aspell
+++ b/completions/aspell
@@ -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)

-- 
bash-completion



More information about the Bash-completion-commits mailing list