zsh-workers
 help / color / mirror / code / Atom feed
520a7666e08ee5007641c1cc5b4471be2789de19 blob 475 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 
#compdef -redirect-

local strs _comp_command1 _comp_command2 _comp_command

_set_command

strs=( -default- )

if [[ "$CURRENT" != "1" ]]; then
  strs=( "${_comp_command}" "$strs[@]" )
  if [[ -n "$_comp_command1" ]]; then
    strs=( "${_comp_command1}" "$strs[@]" )
    [[ -n "$_comp_command2" ]] &&
      strs=( "${_comp_command2}" "$strs[@]" )
  fi
fi

_dispatch -redirect-,${compstate[redirect]},$_comp_command \
	  -redirect-,{${compstate[redirect]},-default-},${^strs}
debug log:

solving 520a7666e ...
found 520a7666e in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).