1.首先安装 lrzsz
brew install lrzsz
2.下载 iterm2-send-zmodem.sh 和 iterm2-recv-zmodem.sh 这两个文件
- WX20181217-164401@2x.png
-
可通过 「command+shift+.」快捷键查看隐藏目录,找到 /usr/local/bin/,将下载的两个文件拷贝到该目录下
3.配置 iterm2
Regular expression: rz waiting to receive.\*\*B0100
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-send-zmodem.sh
Instant: checked
Regular expression: \*\*B00000000000000
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-recv-zmodem.sh
Instant: checked
WX20181217-163915@2x.png
WX20181217-164018@2x.png
网友评论