/iterm2-zmodem

Zmodem(lrzsz) for iTerm2

Primary LanguageShellMIT LicenseMIT

iterm2-zmodem

Zmodem for iTerm2

Install

  1. Install lrzsz.
brew install lrzsz
  1. 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
  1. 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