mac 如何安装sz rz
rz sz 是通过 ZModem 协议在远程服务器和终端机器间上传下载文件的利器
源码:
https://github.com/quyaoshun/iterm2-zmodem
1. 安装brew
是mac本地安装,不是linux
```bash
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
```
• 卸载:
```bash
`/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"`
```
2. 安装lrzsz
```bash
brew install lrzsz
```
是mac本地安装,不是linux
下载 iterm2-recv-zmodem.sh 和 iterm2-send-zmodem.sh 保存到 /usr/local/bin/我下载好了,网盘自取:
链接: https://pan.baidu.com/s/1aGI3SqpySF6NWLMSUsYOxw 密码: ptki
打开命令行输入
cd /usr/local/bin/
chmod 777 /usr/local/bin/iterm2-*
修改iterm2的Preference → Profiles → Advanced → Triggers → Edit,添加『+』如下内容
rz waiting to receive.**B0100Run Silent Coprocess/usr/local/bin/iterm2-send-zmodem.sh• ✓
**B00000000000000Run Silent Coprocess/usr/local/bin/iterm2-recv-zmodem.sh• ✓