Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Automatic ZModem support for iTerm 2

branch: master

<pre>

latest commit cf3078f329
Matt Mastracci authored
Octocat-spinner-32 README.md <pre> January 25, 2012
Octocat-spinner-32 iterm2-recv-zmodem.sh Add #! magic October 28, 2011
Octocat-spinner-32 iterm2-send-zmodem.sh Add #! magic October 28, 2011
README.md

ZModem integration for iTerm 2

This script can be used to automate ZModem transfers from your OSX desktop to a server that can run lrzsz (in theory, any machine that supports SSH), and vice-versa.

The minimum supported iTerm2 version is 1.0.0.20120108

Setup is pretty simple:

  1. Save the iterm2-send-zmodem.sh and iterm2-recv-zmodem.sh scripts in /usr/local/bin/
  2. Set up Triggers in iTerm 2 like so:
    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

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
  3. Wait for the coprocess indicator to disappear

The receive a file from a remote machine

  1. Type "sz filename1 filename2 … filenameN" on the remote machine
  2. Select the folder to receive to on the local machine
  3. Wait for the coprocess indicator to disappear

Future plans (patches welcome)

  • Visual progress bar indicator
Something went wrong with that request. Please try again.