mac 安装item2 lrzsz

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 
    brew install lrzsz 
    安装完成后检查 ls -alh /usr/local/bin/sz 是否存在 

    如果出现ls: /usr/local/bin/sz: No such file or directory  执行如下命令 
    # ln -s /usr/local/bin/lrz /usr/local/bin/rz  
    # ln -s /usr/local/bin/lsz /usr/local/bin/sz 

4.下载iterm2-zmodem 
  # cd /usr/local/bin 
  # sudo wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-send-zmodem.sh 
  # sudo wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-recv-zmodem.sh 
  #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 

相关文章
相关标签/搜索