Skip to content

Latest commit

 

History

History
85 lines (59 loc) · 1.37 KB

README.md

File metadata and controls

85 lines (59 loc) · 1.37 KB

pairon

Editor agnostic realtime pair programing with git as backend (PoC)

Install with Nix

nix-env -i -f https://github.com/icetan/pairon/archive/master.tar.gz

Setup from source

Dependencies:

  • git
  • ssh
  • inotify-tools or fswatch

Copy source:

git clone https://github.com/icetan/pairon

pairon using Nix:

nix-env -i -f ./pairon

Without Nix on Debian or Ubuntu:

apt-get install git openssh inotify-tools

Or on Mac OS:

brew install git openssh fswatch

Add to PATH:

export PATH=$PWD/pairon:$PATH

Usage

Start a central pairon share by first creating a shared ssh user.

sudo useradd -m pairon
sudo -u pairon mkdir -p ~pairon/.ssh
sudo -u pairon tee -a ~pairon/.ssh/authorized_keys < ~/.ssh/id_rsa.pub
sudo chmod g+s ~pairon
sudo chmod -R 755 ~pairon
sudo chmod 600 ~pairon/.ssh/authorized_keys

Create a directory with files that you want to share.

mkdir my-share
cd my-share
echo Look at this file! > a-file

Start sharing your files.

pairon connect [email protected]:shared-repo

Then you can start editing files.

echo It is awesome >> a-file

To get the best experience in your editor enable auto-save and auto-reloading of files. The faster to save/reload files the better.

Check out the editor-plugins directory for plugins/settings that match your editor.