mac下安装rzsz

1.先安装item2,item2 市类似mac风格的终端 item2 下载地址,http://iterm2.com/downloads.html,下载后解压缩就能运行 2.Install Homebrew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 3.使用brew 安装lrzsz sudo brew install lrzsz 安装完成后检查 ls -alh /usr/local/bin/sz 是否存在 如果出现ls: /usr/local/bin/sz: No such file or directory 执行如下命令 peizhe-air:bin peizhe$ ln -s /usr/local/bin/lrz /usr/local/bin/rz peizhe-air:bin peizhe$ ln -s /usr/local/bin/lsz /usr/local/bin/sz

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.运行下载的 iterm 添加trigger 打开iterm2 ------ 同时按 command和,键 ------- Profiles ---------- Default ------- Advanced ------ Triggers的Edit按钮

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

转载于:https://www.cnblogs.com/peizhe123/p/9001887.html

你可能感兴趣的:(mac下安装rzsz)