首先安装iTerm2(SecureCRT收费,iTerm2免费)
iTerm2下载地址,http://iterm2.com/downloads.html,下载后解压缩就能运行
unzip iTerm2_v2_0.zip -d /Applications/
然后按照如下步骤配置iterm2-zmodem
1.获取iterm2-zmodem脚本
git clone https://github.com/mmastrac/iterm2-zmodem.git
ls -lh iterm2-zmodem/
2.拷贝两个脚本文件到/usr/local/bin/目录下
cp iterm2-zmodem/*.sh /usr/local/bin/
sudo chmod 777 /usr/local/bin/iterm2-*.sh
3.打开iterm2 --> 同时按 command和,键 --> Profiles --> Default --> Advanced --> Triggers
添加两个Trigger
Trigger A的设置如下
1 Regular expression: \*\*B0100
2 Action: Run Silent Coprocess
3 Parameters: /usr/local/bin/iterm2-send-zmodem.sh
Trigger B的设置如下
1 Regular expression: \*\*B00000000000000
2 Action: Run Silent Coprocess
3 Parameters: /usr/local/bin/iterm2-recv-zmodem.sh
原文地址:http://shawyang.blog.51cto.com/2894939/1763640