python(3): Add -X argument non-completion

This commit is contained in:
Ville Skyttä 2014-07-19 19:12:11 +03:00
parent 7c5c622dda
commit eb79f9d97f

View File

@ -12,7 +12,7 @@ _python()
_init_completion || return
case $prev in
-'?'|-h|--help|-V|--version|-c)
-'?'|-h|--help|-V|--version|-c|-X)
return 0
;;
-m)
@ -29,7 +29,7 @@ _python()
return 0
;;
!(?(*/)python*([0-9.])|?(*/)pypy*([0-9.])|-?))
[[ $cword -lt 2 || ${words[cword-2]} != -[QW] ]] && _filedir
[[ $cword -lt 2 || ${words[cword-2]} != -[QWX] ]] && _filedir
;;
esac