I found iterm2-zmodem and wonder how to set trigger for iterm2?
Installation and configuration
The script iterm2-zmodem should by copied to /usr/local/bin.
It's required to setup the following "Triggers" in iTerm2:
Regular expression: \*\*B0100
Action: Run Coprocess
Parameters: /usr/local/bin/iterm2-zmodem sz
Regular expression: \*\*B00000000000000
Action: Run Coprocess
Parameters: /usr/local/bin/iterm2-zmodem rz
At Preferences -> Profiles -> Advanced