首先安装item2
item2 下载地址,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
Triggers的设置代码如下
1 Regular expression: \*\*B0100
2 Action: Run Silent Coprocess
3 Parameters: /usr/local/bin/iterm2-send-zmodem.sh
4
5 Regular expression: \*\*B00000000000000
6 Action: Run Silent Coprocess
7 Parameters: /usr/local/bin/iterm2-recv-zmodem.sh
时间: 2024-11-05 17:23:34