美文网首页
在Mac下iTerm2使用sz和rz命令报waiting to

在Mac下iTerm2使用sz和rz命令报waiting to

作者: Rami | 来源:发表于2023-03-22 11:01 被阅读0次

    1.给mac安装 brew命令

    参考 https://blog.csdn.net/bochuangli/article/details/123901973

    2. 安装lrzsz

    brew install lrzsz
    

    3.安装触发器工具

    参考
    https://iterm2.com/triggers.html
    https://github.com/RobberPhex/iTerm2-zmodem

    cd /usr/local/bin
    wget https://github.com/robberphex/iTerm2-zmodem/blob/master/iterm2-recv-zmodem.sh 
    wget https://github.com/robberphex/iTerm2-zmodem/blob/master/iterm2-send-zmodem.sh
    chmod 777 iterm2-recv-zmodem.sh
    chmod 777 iterm2-send-zmodem.sh 
    

    4.配置iTerm2

    点击 iTerm2 的设置界面 Perference -> Profiles -> Default -> Advanced -> Triggers 的 Edit 按钮

    image.png
    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
    

    相关文章

      网友评论

          本文标题:在Mac下iTerm2使用sz和rz命令报waiting to

          本文链接:https://www.haomeiwen.com/subject/ghwvrdtx.html