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

Ville Skyttä ville.skytta at iki.fi
Sun Nov 21 18:38:08 UTC 2010


The following commit has been merged in the master branch:
commit c1d3cdad70523552e63688cb053a960b64e97b16
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Nov 21 20:36:09 2010 +0200

    python -c takes a command, not a script.

diff --git a/completions/python b/completions/python
index 7c8fbba..d627429 100644
--- a/completions/python
+++ b/completions/python
@@ -9,7 +9,7 @@ _python()
     _get_comp_words_by_ref cur prev
 
     case $prev in
-        -'?'|-h|--help|-V|--version|-m)
+        -'?'|-h|--help|-V|--version|-c|-m)
             return 0
             ;;
         -Q)
@@ -21,10 +21,6 @@ _python()
                 -- "$cur" ) )
             return 0
             ;;
-        -c)
-            _filedir '@(py|pyc|pyo)'
-            return 0
-            ;;
         !(python?([23])|-?))
             [[ ${COMP_WORDS[COMP_CWORD-2]} != -@(Q|W) ]] && _filedir
             ;;

-- 
bash-completion



More information about the Bash-completion-commits mailing list