OS X version >= 10.10
- support to upload multiple files
- install lrzsz
brew install lrzsz
- save this shell to somewhere, etc
/usr/local/bin
sudo wget -qO /usr/local/bin/iterm2-lrzsz https://github.com/conorzhong/iterm2-lrzsz/raw/main/iterm2-lrzsz.sh
sudo chmod +x /usr/local/bin/iterm2-lrzsz
- configure iterm2
- open: Preferences->Profiles->Advanced->Triggers->"+"(at bottom left)
- input:
rz waiting to receive.\*\*B0100
,Run Silent Coprocess
,/usr/local/bin/iterm2-lrzsz send
, check Instant and Enabled - input:
\*\*B00000000000000
,Run Silent Coprocess
,/usr/local/bin/iterm2-lrzsz recv
, check Instant and Enabled
- login your server(by iterm2)
- run rz or sz