Osx:Zmodem

来自WHY42
imported>Soleverlee2017年5月10日 (三) 05:06的版本 (以“<source lang="bash"> 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*....”为内容创建页面)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
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