c4rt1y

mac下安装rzsz

0x01 介绍

mac实现文件的上传下载,可以使用rzsz,他需要安装brew和item2

0x02 安装

# 安装
brew install lrzsz

# 配置脚本
git clone https://github.com/c4rt1y/iterm2-zmodem.git

# 移动文件、附加权限
cd iterm2-zmodem && cp iterm2-* /usr/local/bin/ && sudo chomod 777 /usr/local/bin/item2-*

# 设置item2文件
Iterm2->profiles->default->editProfiles->Advanced中的Tirgger
1.第一条
    Regular expression: rz waiting to receive.\*\*B0100
    Action: Run Silent Coprocess
    Parameters: /usr/local/bin/iterm2-send-zmodem.sh
    Instant: checked
2.第二条
    Regular expression: \*\*B00000000000000
    Action: Run Silent Coprocess
    Parameters: /usr/local/bin/iterm2-recv-zmodem.sh
    Instant: checked

item2-configuration

0x03 资料来源

https://github.com/c4rt1y/iterm2-zmodem
https://blog.csdn.net/jackton/article/details/45915361
GoTop