博学笃行·盛德日新

macOS中使用iterm2配置lrzsz


macOS iterm2

0x00 使用brew安装 lrzsz

brew install lrzsz

安装完成后, 应该会在/usr/local/bin/目录下生成4个文件链接 c-1

0x01 下载安装iterm2-zmodem

cd /usr/local/bin 
wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-send-zmodem.sh 
wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-recv-zmodem.sh 
chmod +x /usr/local/bin/iterm2-* 

0x02 配置iterm2的trigger

打开iterm2 ------->  
    同时按 command和,键(或者菜单栏的iterm2--->preferences) ------->  
         Profiles ---------->    
              Default -------> Advanced ------> Triggers的Edit按钮   

c-2

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 

c-3

评论