pypy: New completion identical to python (Alioth: #314501)
This commit is contained in:
parent
c924d32b4c
commit
38a013e22c
1
completions/.gitignore
vendored
1
completions/.gitignore
vendored
@ -134,6 +134,7 @@ pxz
|
||||
pydoc3
|
||||
python2
|
||||
python3
|
||||
pypy
|
||||
qemu-kvm
|
||||
qemu-system-i386
|
||||
qemu-system-x86_64
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user