[Bash-completion-commits] [SCM] bash-completion branch, master, updated. e7494cf065d1988db6cefad51cd909214e966ba2

Ville Skyttä ville.skytta at iki.fi
Sat Oct 23 10:10:12 UTC 2010


The following commit has been merged in the master branch:
commit 7f5cfc3099e1dd9c58049d27d999b2f7d0e8ac14
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Oct 23 12:36:13 2010 +0300

    Add wodim driver= completion.

diff --git a/completions/wodim b/completions/wodim
index 763e473..6148667 100644
--- a/completions/wodim
+++ b/completions/wodim
@@ -33,6 +33,11 @@ _cdrecord()
                     nospeedread singlesession nosinglesession hidecdr nohidecdr
                     tattooinfo tattoofile=' -- "$cur" ) )
                 ;;
+            driver)
+                compopt +o nospace &>/dev/null
+                COMPREPLY=( $( compgen -W "$( $1 driver=help 2>&1 | \
+                    awk 'NR > 1 { print $1 }' ) help" -- "$cur" ) )
+                ;;
         esac
         return 0
     fi

-- 
bash-completion



More information about the Bash-completion-commits mailing list