iterm2配置

lrzsz远程上传下载

安装brew

Homebrew官网

# 安葬
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# 卸载
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

安装lrzsz

brew install lrzsz

下载zmoden

https://github.com/mmastrac/iterm2-zmodem上将 iterm2-send-zmodem.shiterm2-recv-zmodem.sh 脚本下载下来并放到 /usr/local/bin/ 目录下

配置iterm2

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

远程服务器安装lrzsz

centos安装

yum -y install lrzsz

完成

现在你可以用rz上传、sz下载文件了

# 上传
rz

# sz filename filename1 filenam2 ...
sz README.md