[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 884307100281c3b5ff3b64130c1fbb9ec306f859

Ville Skyttä ville.skytta at iki.fi
Mon Jan 10 18:34:17 UTC 2011


The following commit has been merged in the master branch:
commit a2348ba792526071120a4687bc0b31d25553f59a
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Mon Jan 10 20:29:34 2011 +0200

    Complete "/path/to/python" the same way as plain "python".

diff --git a/completions/python b/completions/python
index 9218435..7cbc8c2 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
             ;;

-- 
bash-completion



More information about the Bash-completion-commits mailing list