The following commit has been merged in the master branch:
commit a2348ba792526071120a4687bc0b31d25553f59a
Author: Ville Skyttä <[email protected]>
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

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits

Reply via email to