1. Install Iterm2
brew cask install iterm2
Copy the code
Updating Homebrew… , go to CMD +c, skip;
2. Install LRZSZ
brew install lrzsz
Copy the code
3. Download the iterm2-zmodem script
Git address: github.com/luanshiqigu… Run iterm2-send-zmodem.sh & iterm2-recv-zmodem.sh to the /usr/local/bin/ directory and add the following permission:
chmod 777 iterm2-send-zmodem.sh
chmod 777 iterm2-recv-zmodem.sh
Copy the code
4. Configure iterm2 Trigger
Open iterm = “Preferences =” Profiles = “default =” Advanced => trigger => Edit => Add the following two records
The first one is to send “SZ”
Regular expression:\*\*B0100
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-send-zmodem.sh
Copy the code
The second one is to receive “RZ.”
Regular expression:\*\*B00000000000000
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-recv-zmodem.sh
Copy the code