1. Install item2 first, the item2 download address of the mac-like terminal item2 in item2 city, http://iterm2.com/downloads.html , after downloading, unzip it and run it 2.Install Homebrew ruby -e "$(curl -fsSL https ://raw.githubusercontent.com/Homebrew/install/master/install )" 3. Use brew to install lrzsz sudo brew install lrzsz After the installation is complete, check if ls -alh /usr/local/bin/sz exists if ls: / usr/local/bin/sz: No such file or directory Execute the following command
4.下载iterm2-zmodem peizhe-air:bin peizhe$ pwd /usr/local/bin
peizhe-air:bin peizhe$ sudo wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-send-zmodem.sh peizhe-air:bin peizhe$ sudo wget https://raw.github .com/mmastrac/iterm2-zmodem/master/iterm2-recv-zmodem.sh
peizhe-air:~ peizhe$sudo chmod 777 /usr/local/bin/iterm2-*
5. Run the downloaded iterm Add trigger to open iterm2 ------ Press command and , keys at the same time ------- Profiles ---------- Default ------- Advanced - ----- Edit button for Triggers
Regular expression: **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