Loosen python executable matching glob.

This commit is contained in:
Ville Skyttä 2011-01-10 20:31:57 +02:00
parent a2348ba792
commit 8843071002

View File

@ -21,7 +21,7 @@ _python()
-- "$cur" ) ) -- "$cur" ) )
return 0 return 0
;; ;;
!(?(*/)python?([23])|-?)) !(?(*/)python*([0-9.])|-?))
[[ $COMP_CWORD -lt 2 || ${COMP_WORDS[COMP_CWORD-2]} != -@(Q|W) ]] \ [[ $COMP_CWORD -lt 2 || ${COMP_WORDS[COMP_CWORD-2]} != -@(Q|W) ]] \
&& _filedir && _filedir
;; ;;