diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-01-10 20:29:34 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-01-10 20:29:34 +0200 |
commit | a2348ba792526071120a4687bc0b31d25553f59a (patch) | |
tree | 59f506205924ac70728985b7c77b4f7d5057f011 | |
parent | 8fd9e1d1b972eaf4ae7bbffed0479902963d575b (diff) | |
download | bash-completion-a2348ba792526071120a4687bc0b31d25553f59a.tar.gz |
Complete "/path/to/python" the same way as plain "python".
-rw-r--r-- | completions/python | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/python b/completions/python index 9218435e..7cbc8c2e 100644 --- a/completions/python +++ b/completions/python @@ -21,7 +21,7 @@ _python() -- "$cur" ) ) return 0 ;; - !(python?([23])|-?)) + !(?(*/)python?([23])|-?)) [[ $COMP_CWORD -lt 2 || ${COMP_WORDS[COMP_CWORD-2]} != -@(Q|W) ]] \ && _filedir ;; |