Editor agnostic realtime pair programing with git as backend (PoC)
nix-env -i -f https://github.com/icetan/pairon/archive/master.tar.gz
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
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.