mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-19 11:31:26 +01:00
32911: Expand bpython completion to bpython2 and bpython3
This commit is contained in:
parent
a7d7c77b7b
commit
efde0a1296
2 changed files with 6 additions and 4 deletions
|
@ -5,6 +5,8 @@
|
|||
* Sebastian Ramacher: 32816: Add completion for bpython and
|
||||
variants.
|
||||
|
||||
* 32911: Expand bpython completion to bpython2 and bpython3.
|
||||
|
||||
2014-07-24 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 32853: configure.ac, Src/mem.c, Src/zsh_system.h: redefine
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef bpython bpython-gtk bpython-urwid
|
||||
#compdef bpython bpython-gtk bpython-urwid bpython2 bpython2-gtk bpython2-urwid bpython3 bpython3-gtk bpython3-urwid
|
||||
|
||||
local -a all_opts urwid_opts gtk_opts
|
||||
|
||||
|
@ -24,18 +24,18 @@ gtk_opts=(
|
|||
)
|
||||
|
||||
case "$service" in
|
||||
bpython)
|
||||
bpython|bpython2|bpython3)
|
||||
_arguments \
|
||||
"$all_opts[@]" && return 0
|
||||
;;
|
||||
|
||||
bpython-urwid)
|
||||
bpython-urwid|bpython2-urwid|bpython3-urwid)
|
||||
_arguments \
|
||||
"$all_opts[@]" \
|
||||
"$urwid_opts[@]" && return 0
|
||||
;;
|
||||
|
||||
bpython-gtk)
|
||||
bpython-gtk|bpython2-gtk|bpython3-gtk)
|
||||
_arguments \
|
||||
"$all_opts[@]" \
|
||||
"$gtk_opts[@]" && return 0
|
||||
|
|
Loading…
Reference in a new issue