本文转自:http://www.ipython.me/other/mac-using-lrzsz.html
首先你得安装Iterm2,然后你可以尝试使用brew安装lrzsz
1
2
3
4
5
6
7
8
9
10
|
liushadeMacBook
-
Pro
:
~
LiuSha
$
sudo
brew
install
lrzsz
Password
:
==
>
Downloading
http
:
/
/
www
.
ohse
.
de
/
uwe
/
releases
/
lrzsz
-
0.12.20.tar.gz
######################################################################## 100.0%
######################################################################## 100.0%
==
>
.
/
configure
--
prefix
=
/
usr
/
local
/
Cellar
/
lrzsz
/
0.12.20
--
mandir
=
/
usr
/
local
/
Cellar
/
lrzsz
/
0.12.20
/
share
/
man
###验证发现brew很贴心###
liushadeMacBook
-
Pro
:
~
LiuSha
$
ls
-
lh
/
usr
/
local
/
bin
/
sz
lrwxr
-
xr
-
x
1
root
wheel
30B
11
8
16
:
21
/
usr
/
local
/
bin
/
sz
->
.
.
/
Cellar
/
lrzsz
/
0.12.20
/
bin
/
sz
|
下载iterm2-zmodem
1
2
3
4
5
6
7
|
liushadeMacBook
-
Pro
:
bin
LiuSha
$
pwd
/
usr
/
local
/
bin
liushadeMacBook
-
Pro
:
bin
LiuSha
$
sudo
wget
https
:
/
/
raw
.
github
.
com
/
mmastrac
/
iterm2
-
zmodem
/
master
/
iterm2
-
send
-
zmodem
.
sh
liushadeMacBook
-
Pro
:
bin
LiuSha
$
sudo
wget
https
:
/
/
raw
.
github
.
com
/
mmastrac
/
iterm2
-
zmodem
/
master
/
iterm2
-
recv
-
zmodem
.
sh
liushadeMacBook
-
Pro
:
~
LiuSha
$
sudo
chmod
777
/
usr
/
local
/
bin
/
iterm2
-
*
|
添加trigger
1
2
3
4
5
6
7
8
9
|
Iterm2
→
command
+
,
→
click
profiles
→
advanced
→
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
|