blob: b33e785ee7e054954edfd8ded87eda86016dbca1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#compdef -redirect-
local strs _comp_command1 _comp_command2 _comp_command
_set_command
strs=( -default- )
if [[ -n "$_comp_command1" ]]; then
strs=( "${_comp_command1}" "$strs[@]" )
[[ -n "$_comp_command2" ]] &&
strs=( "${_comp_command2}" "$strs[@]" )
fi
_dispatch -redirect-,${compstate[redirect]},${_comp_command} \
-redirect-,{${compstate[redirect]},-default-},${^strs}
|