Install lrzsz on OSX:
brew install lrzsz
git clone https://github.com/xmvper/iterm2-zmodem.git
Save theiterm2-send-zmodem.sh
anditerm2-recv-zmodem.sh
scripts in/usr/local/bin/
-
Set up Triggers(At Preferences -> Profiles -> Advanced) in iTerm 2 like so:
Regular expression: rz waiting to receive.\*\*B0100 Action: Run Silent Coprocess Parameters: /usr/local/bin/iterm2-send-zmodem.sh Instant: checked Regular expression: \*\*B00000000000000 Action: Run Silent Coprocess Parameters: /usr/local/bin/iterm2-recv-zmodem.sh Instant: checked