Zmodem for iTerm2
- Install lrzsz.
brew install lrzsz
- Save
iterm2-zmodem.sh
to your PATH
wget -qO /usr/local/bin/iterm2-zmodem https://github.com/kuoruan/iterm2-zmodem/raw/master/iterm2-zmodem.sh
chmod +x /usr/local/bin/iterm2-zmodem
- Add triggers in iTerm 2 'Preferences...' -> 'Profiles' -> 'Advanced' -> 'Trigger', click 'Edit'
Regular expression: rz waiting to receive.\*\*B0100
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-zmodem send
Instant: checked
Regular expression: \*\*B00000000000000
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-zmodem recv
Instant: checked