python -c takes a command, not a script.

This commit is contained in:
Ville Skyttä 2010-11-21 20:36:09 +02:00
parent fdae59d057
commit c1d3cdad70

View File

@ -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
;;