xjx79 / zterm2

File transfer support for iterm2 with zmodem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZModem support for iterm2

Provide you with the ability to send files using your terminal between machines. It's slower then scp but very convenient.

You neeed to install zmodem on the remote machines.
For ubuntu/debian: apt-get install lrzsz
For Redhat/CentOS: yum install lrzsz

Setup is pretty simple:

  1. Run ./install.sh
  2. Set up Triggers (Open Profiles->Edit Profies->Profiles->Advanced) in iTerm 2 like so:

Send trigger

    Regex: \*\*B0100
    Action: Run Silent Coprocess
    Parameters: /usr/local/bin/ziterm2-send.sh

Receive trigger

    Regex: \*\*B00000000000000
    Action: Run Silent Coprocess
    Parameters: /usr/local/bin/ziterm2-recv.sh

Expected result

iterm-image

Usage

To send a file to a remote machine:

  1. Type "rz" on the remote machine
  2. Select the file(s) on the local machine to send

The receive a file from a remote machine

  1. Type "sz filename1 filename2 … filenameN" on the remote machine

Ideas and kudos goes out to: https://github.com/mmastrac/iterm2-zmodem

About

File transfer support for iterm2 with zmodem


Languages

Language:Shell 100.0%