diff --git a/completions/python b/completions/python index 8736de5b..b4a29ce8 100644 --- a/completions/python +++ b/completions/python @@ -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