Mac 下使用rz/sz

一、下载并安装iTerm2
    http://www.iterm2.com/#/section/downloads
    
二、下载安装lrzsz
    1、brew install lrzsz(没有权限的话就使用 sudo brew install lrzsz 试试)
    
    2、ln -s /usr/local/Cellar/lrzsz/0.12.20/bin/sz
      ln -s /usr/local/Cellar/lrzsz/0.12.20/bin/rz
     
三、下载并安装automatic zmoderm for iTerm2
    1、/usr/local/bin
    2、sudo wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-send-zmodem.sh
      sudo wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-recv-zmodem.sh
    3、sudo chmod 777 /usr/local/bin/iterm2-*
    
四、添加iTerm2 trigger
 iTerm2 --> Profiles --> Open Profiles --> Edit Profiles --> Advanced --> Edit Trigger
Mac 下使用rz/sz_第1张图片

配置项:

Regular expression        Action             Parameters
\*\*B0100        Run Silent Coprocess  /usr/local/bin/iterm2-send-zmodem.sh
\*\*B00000000000000   Run Silent Coprocess  /usr/local/bin/iterm2-recv-zmodem.sh

你可能感兴趣的:(Mac)