Mac 10.12下iTerm2使用lrzsz上传下载文件

一、下载脚本:git

cd /usr/local/bin
wget https://raw.githubusercontent.com/mmastrac/iterm2-zmodem/master/iterm2-send-zmodem.sh
wget https://raw.githubusercontent.com/mmastrac/iterm2-zmodem/master/iterm2-recv-zmodem.sh

chmod +x iterm2-recv-zmodem.sh iterm2-send-zmodem.sh

说明:这个脚本做者是这个:https://github.com/mmastrac/iterm2-zmodemgithub

二、配置express

    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

 

参考:post

http://www.javashuo.com/article/p-zkakoetx-ge.html(以上内容转自此篇文章)spa

相关文章
相关标签/搜索