pypy: New completion identical to python (Alioth: #314501)

This commit is contained in:
Stefano Rivera 2013-10-24 16:09:17 +04:00 committed by Igor Murzov
parent c924d32b4c
commit 38a013e22c
3 changed files with 5 additions and 3 deletions

View File

@ -134,6 +134,7 @@ pxz
pydoc3
python2
python3
pypy
qemu-kvm
qemu-system-i386
qemu-system-x86_64

View File

@ -548,6 +548,7 @@ CLEANFILES = \
pvscan \
pxz \
pydoc3 \
pypy \
python2 \
python3 \
qemu-kvm \
@ -845,7 +846,7 @@ symlinks: $(targetdir) $(DATA)
rm -f $(targetdir)/$$file && \
$(LN_S) pydoc $(targetdir)/$$file ; \
done
for file in python2 python3 ; do \
for file in pypy python2 python3 ; do \
rm -f $(targetdir)/$$file && \
$(LN_S) python $(targetdir)/$$file ; \
done

View File

@ -28,7 +28,7 @@ _python()
-- "$cur" ) )
return 0
;;
!(?(*/)python*([0-9.])|-?))
!(?(*/)python*([0-9.])|?(*/)pypy*([0-9.])|-?))
[[ $cword -lt 2 || ${words[cword-2]} != -[QW] ]] && _filedir
;;
esac
@ -51,6 +51,6 @@ _python()
return 0
} &&
complete -F _python python python2 python3
complete -F _python python python2 python3 pypy
# ex: ts=4 sw=4 et filetype=sh