1.给mac安装 brew命令
参考 https://blog.csdn.net/bochuangli/article/details/123901973
2. 安装lrzsz
brew install lrzsz
3.安装触发器工具
参考
https://iterm2.com/triggers.html
https://github.com/RobberPhex/iTerm2-zmodem
cd /usr/local/bin
wget https://github.com/robberphex/iTerm2-zmodem/blob/master/iterm2-recv-zmodem.sh
wget https://github.com/robberphex/iTerm2-zmodem/blob/master/iterm2-send-zmodem.sh
chmod 777 iterm2-recv-zmodem.sh
chmod 777 iterm2-send-zmodem.sh
4.配置iTerm2
点击 iTerm2 的设置界面 Perference -> Profiles -> Default -> Advanced -> Triggers 的 Edit 按钮
image.pngRegular 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
网友评论