1, install brew software (there is no need to install)
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)" #按提示安装
2, install Lrzsz
Brew Install Lrzsz
3, download Iterm2-zmodem script
Https://github.com/mmastrac/iterm2-zmodem
Get two scripts of iterm2-recv-zmodem.sh iterm2-send-zmodem.sh
Put these two scripts under/usr/local/bin/(to have execute permission)
4, configuring the Zmodem trigger
Open ITERM2------simultaneously press command and,-------Profiles----------Default-------advanced------Triggers Edit button
Regular Expression:rz waiting to receive.\*\*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
Configuration can be done using the
Mac Iterm2 upload and download using Lrzsz