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• ?