首页 > 代码库 > mac sz rz file tras

mac sz rz file tras

安装Zmodem的实现

brew install lrzsz


  1. 下载 iterm2-send-zmodem.sh 和 iterm2-recv-zmodem.sh 到路径/usr/local/bin/   
    wget https://raw.githubusercontent.com/mmastrac/iterm2-zmodem/master/iterm2-recv-zmodem.sh
    wget https://raw.githubusercontent.com/mmastrac/iterm2-zmodem/master/iterm2-send-zmodem.sh 

     

    1.设定Triggers 在 iTerm 2的配置中(profile Advanced  Triggers ) :
    Regular 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
配置完成后可以在服务器端使用sz 下载文件,在本地使用rz 上传文件到server

mac sz rz file tras