1. 程式人生 > >mac安裝rz和sz命令

mac安裝rz和sz命令

1.安裝Iterm2, homebrew

2.安裝lrzsz: $brew install lrzsz

4.在ITerm2中對應的profile中“Advance”->"Trigger" 中填入:

    Regular expression: \*\*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

5. 登入遠端機器,該機器上需要有lrzsz(sudo yum install -y lrzsz)。理論上,$rz ,即會在本機彈出選擇檔案選擇框。