操作步驟
- 安裝lrzsz
brew install lrzsz #這裡以homebrew方式安裝
- 從github.com/mmastrac/it…下載iterm2-send-zmodem.sh 和 iterm2-recv-zmodem.sh
- 下載iterm2-send-zmodem.sh 和 iterm2-recv-zmodem.sh
git clone https://github.com/mmastrac/iterm2-zmodem.git
- cp iterm2-send-zmodem.sh 和 iterm2-recv-zmodem.sh到/usr/local/bin目錄下
- 依次點選iterm2-->perferences-->Profiles-->Advanced
- 在Triggers下點選Edit 在彈出視窗,點選 + 新增兩條記錄填寫Regular Expression,Action,Parameters
Regular Expression | Action | Parameters |
---|---|---|
rz waiting to receive.**B0100 | Run Silent Coprocess | /usr/local/bin/iterm2-send-zmodem.sh |
**B00000000000000 | Run Silent Coprocess | /usr/local/bin/iterm2-recv-zmodem.sh |