阅读更多
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
附件中有iterm2 和 iterm2-send-zmodem.sh iterm2-recv-zmodem.sh 脚本
- Archive.zip (2.9 MB)
- 下载次数: 36
- 大小: 75.7 KB