iTerm 安装

安装iTerm

安装brew

$ ruby -e "$(curl -fsSL [https://raw.githubusercontent.com/Homebrew/install/master/install](https://raw.githubusercontent.com/Homebrew/install/master/install))" 

安装lrzsz

$ brew install lrzsz

安装完成后检查$ ls -alh /usr/local/bin/sz是否存在

如果出现ls: /usr/local/bin/sz: No such file or directory执行如下命令

$ ln -s /usr/local/bin/lrz /usr/local/bin/rz 
$ ln -s /usr/local/bin/lsz /usr/local/bin/sz

下载iterm2-zmodem

iterm2-zmodem是rz、sz传输数据的一种协议。

https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-send-zmodem.sh

https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-recv-zmodem.sh

$ sudo chmod 777 /usr/local/bin/iterm2-*

运行下载的 iterm2 添加trigger

打开iterm2 --> 同时按 command和,键(偏好设置) --> Profiles --> Default --> Advanced --> Triggers的Edit按钮

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

你可能感兴趣的:(iTerm 安装)