python(3): Add -X argument non-completion
This commit is contained in:
parent
7c5c622dda
commit
eb79f9d97f
@ -12,7 +12,7 @@ _python()
|
|||||||
_init_completion || return
|
_init_completion || return
|
||||||
|
|
||||||
case $prev in
|
case $prev in
|
||||||
-'?'|-h|--help|-V|--version|-c)
|
-'?'|-h|--help|-V|--version|-c|-X)
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-m)
|
-m)
|
||||||
@ -29,7 +29,7 @@ _python()
|
|||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
!(?(*/)python*([0-9.])|?(*/)pypy*([0-9.])|-?))
|
!(?(*/)python*([0-9.])|?(*/)pypy*([0-9.])|-?))
|
||||||
[[ $cword -lt 2 || ${words[cword-2]} != -[QW] ]] && _filedir
|
[[ $cword -lt 2 || ${words[cword-2]} != -[QWX] ]] && _filedir
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user