https://iterm2.com/downloads.html
https://docs.brew.sh/Installation /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install lrzsz
将iterm2-send-zmodem.sh和iterm2-recv-zmodem.sh保存到/usr/local/bin目录下(见github)
chmod 777 /usr/local/bin/iterm2-*
进入:profiles->default->editProfiles->Advanced->edit
添加两条trigger,分别设置 Regular expression,Action,Parameters,Instant如下:
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
示例图:
上传文件:rz
下载文件:sz file1 file2 file(n)…
https://github.com/snow-sprite/rzsz/blob/master/README.md