1.安裝Iterm2, homebrew
brew install iterm2
2.安裝lrzsz:
brew install lrzsz
3.下載github上的腳本,然后copy到/usr/local/bin中
cd ~
git clone https://github.com/mmastrac/iterm2-zmodem.git
mv ~/iterm2-zmodem/iterm2-recv-zmodem.sh /usr/local/bin/iterm2-recv-zmodem.sh
mv ~/iterm2-zmodem/iterm2-send-zmodem.sh /usr/local/bin/iterm2-send-zmodem.sh
4.在ITerm2中對(duì)應(yīng)的profile中“Advance”->”Trigger” 中填入:
? ? 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? ?
保存即可敌土、瞳遍、、
linux 安裝
yum?install lrzsz -y
上傳? ?rz
下載 sz filename