mac 系统安装rz sz

1.先安装item2,item2 市类似mac风格的终端
     item2 下载地址,​​http://iterm2.com/downloads.html,下载后解压缩就能运行
2.Install Homebrew
     ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3.使用brew 安装lrzsz
    sudo brew install lrzsz
    安装完成后检查 ls -alh /usr/local/bin/sz 是否存在
如果出现ls: /usr/local/bin/sz: No such file or directory  执行如下命令
wangqingyis-air:bin wangqingyi$ ln -s /usr/local/bin/lrz /usr/local/bin/rz
wangqingyis-air:bin wangqingyi$ ln -s /usr/local/bin/lsz /usr/local/bin/sz

4.下载iterm2-zmodem
wangqingyis-air:bin wangqingyi$ pwd
/usr/local/bin

wangqingyis-air:bin wangqingyi$ sudo wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-send-zmodem.sh
wangqingyis-air:bin wangqingyi$ sudo wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-recv-zmodem.sh

wangqingyis-air:~ wangqingyi$sudo chmod 777 /usr/local/bin/iterm2-*

5.运行下载的 iterm   添加trigger
  打开iterm2 ------  同时按 command和,键 ------- Profiles ----------  Default ------- Advanced ------ Triggers的Edit按钮

Regular expression: \*\*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
mac 系统安装rz sz_第1张图片

附件中有iterm2  和 iterm2-send-zmodem.sh  iterm2-recv-zmodem.sh  脚本

你可能感兴趣的:(mac,rz,sz,brew,lrsz)