Mac item2 实现 lrzsz 上传/下载
lrzsz
是一款在linux/mac里可代替ftp上传和下载的程序
注意: zmodem 不能处理超过4G的文件哦
1.安装 lrzsz
brew install lrzsz
2.安装iterm2-zmodem
git clone https://gitee.com/qiushaocloud/iterm2-zmodem.git
cd iterm2-zmodem
chmod +x iterm2-*.sh
sudo cp iterm2-*.sh /usr/local/bin
3.配置iterm2
需要打开 iterm2,Preferences -> Profiles -> Default -> Advanced 的 tab 页 -> Triggers - Edit,然后添加如下两条规则:
Regular expression: rz waiting to receive.\*\*B0100
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-send-zmodem.sh
Regular expression: \*\*B00000000000000
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-recv-zmodem.sh
评论区