diff options
Diffstat (limited to 'Completion/Base/Utility/_as_if')
-rw-r--r-- | Completion/Base/Utility/_as_if | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Completion/Base/Utility/_as_if b/Completion/Base/Utility/_as_if new file mode 100644 index 000000000..c961aaa88 --- /dev/null +++ b/Completion/Base/Utility/_as_if @@ -0,0 +1,10 @@ +#autoload +local words=("$words[@]") CURRENT=$CURRENT +local _comp_command1 _comp_command2 _comp_command + +words[1]=("$@") +(( CURRENT += $# - 1 )) + +_set_command + +_dispatch "$_comp_command" "$_comp_command1" "$_comp_command2" -default- |