diff options
author | David Paleino <dapal@debian.org> | 2011-01-11 09:06:58 +0100 |
---|---|---|
committer | David Paleino <dapal@debian.org> | 2011-01-11 09:06:58 +0100 |
commit | cf4fe7f7a97984ff9816a5ea0ff18ca24c927900 (patch) | |
tree | 9cb68f6fc42be6dc8174c52fba92a83868983ebf | |
parent | 2349fc114d45483c81f4ee3b4d123100b11f71c5 (diff) | |
parent | 884307100281c3b5ff3b64130c1fbb9ec306f859 (diff) | |
download | bash-completion-cf4fe7f7a97984ff9816a5ea0ff18ca24c927900.tar.gz |
Merge branch 'master' into 1.x
-rw-r--r-- | completions/python | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/completions/python b/completions/python index d6274298..17f96f50 100644 --- a/completions/python +++ b/completions/python @@ -21,8 +21,9 @@ _python() -- "$cur" ) ) return 0 ;; - !(python?([23])|-?)) - [[ ${COMP_WORDS[COMP_CWORD-2]} != -@(Q|W) ]] && _filedir + !(?(*/)python*([0-9.])|-?)) + [[ $COMP_CWORD -lt 2 || ${COMP_WORDS[COMP_CWORD-2]} != -@(Q|W) ]] \ + && _filedir ;; esac |