Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aikuyun/iterm2-zmodem
在 Mac 下,实现与服务器进行便捷的文件上传和下载操作
https://github.com/aikuyun/iterm2-zmodem
item2 macos rz sz
Last synced: 6 days ago
JSON representation
在 Mac 下,实现与服务器进行便捷的文件上传和下载操作
- Host: GitHub
- URL: https://github.com/aikuyun/iterm2-zmodem
- Owner: aikuyun
- Created: 2019-06-18T05:41:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-17T10:01:18.000Z (about 4 years ago)
- Last Synced: 2024-12-08T05:03:14.536Z (13 days ago)
- Topics: item2, macos, rz, sz
- Language: Shell
- Homepage:
- Size: 680 KB
- Stars: 1,145
- Watchers: 5
- Forks: 715
- Open Issues: 20
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
- awesome-list - iterm2-zmodem - 在 Mac 下,实现与服务器进行便捷的文件上传和下载操作。 (MacOS / JavaScript)
README
# 项目介绍
在 mac 下,实现与服务器进行便捷的文件上传和下载操作。
# 步骤
1.安装支持rz和sz命令的lrzsz:`brew install lrzsz`
> 等了挺长时间的。
2.在本地/usr/local/bin/目录下保存iterm2-send-zmodem.sh 和iterm2-recv-zmodem.sh两个脚本
3.设置一下两个脚本的权限,一般 chmod 777 就行了
```bash
chmod 777 /usr/local/bin/iterm2-*
```4.设置Iterm2的Tirgger特性,profiles->default->editProfiles->Advanced中的Tirgger
添加两条trigger,分别设置 Regular expression,Action,Parameters,Instant如下:
```
1.第一条
Regular expression: rz waiting to receive.\*\*B0100
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-send-zmodem.sh
Instant: checked
2.第二条
Regular expression: \*\*B00000000000000
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-recv-zmodem.sh
Instant: checked
```![如图](https://github.com/aikuyun/iterm2-zmodem/blob/master/imgs/01.png)