- 首先在mac上安装lrzsz命令
sudo brew install lrzsz
安装完成后,通过以下命令进行检查是否安装成功
ls -alh /usr/local/bin/sz
- 下载iterm2配置rzsz的配置脚本
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
下载完后, 将脚本移到/usr/local/bin目录下并个性其操作权限
sudo chmod 777 /usr/local/bin/itrem2-*
到些OK后, 就需要配置itrem2的终端了, 打开itrem2的首选项。profiles -> Advanced -> Triggers -> Edit 。添加二项tigger
1、**B0100 Run Silent Coprocess... /usr/local/bin/iterm2-send-zmodem.sh
2、**B00000000000000 Run Silent Coprocess... /usr/local/bin/iterm2-recv-zmodem.sh
完