Osx:Zmodem
brew install lrzsz
git clone https://github.com/mmastrac/iterm2-zmodem.git
cp iterm2-zmodem/*.sh /usr/local/bin
chmod +x /usr/local/bin/iterm2*.sh
然后修改触发器,Profile->Edit Profile->Advanced->Triggers 添加两个:
- 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