python -c takes a command, not a script.
This commit is contained in:
parent
fdae59d057
commit
c1d3cdad70
@ -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
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user