Mac 使用rz、sz 远程上传、下载文件

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/chenaini119/article/details/88112954

首先安装 brew 后面很多软件安装都比较方便
https://blog.csdn.net/qq_38287952/article/details/79619108

后面按照以下教程一步步安装rz sz iTerm2

一、下载并安装iTerm2

http://www.iterm2.com/#/section/downloads

二、下载安装lrzsz

1、sudo brew install lrzsz

2、ln -s /usr/local/Cellar/lrzsz/0.12.20/bin/sz

ln -s /usr/local/Cellar/lrzsz/0.12.20/bin/rz

三、下载并安装automatic zmoderm for iTerm2

1、/usr/local/bin

2、sudo wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-send-zmodem.sh

sudo wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-recv-zmodem.sh

3、sudo chmod 777 /usr/local/bin/iterm2-*

四、添加iTerm2 trigger

iTerm2 --> Profiles --> Open Profiles --> Edit Profiles --> Advanced --> Edit Trigger

配置项:

Regular expression   Action        Parameters

**B0100        Run Silent Coprocess  /usr/local/bin/iterm2-send-zmodem.sh

**B00000000000000  Run Silent Coprocess  /usr/local/bin/iterm2-recv-zmodem.sh
具体参考以下博客
https://www.cnblogs.com/dingdada/p/4498766.html

展开阅读全文

没有更多推荐了,返回首页