A simple tool for forwarding file system notifications from one host to another, possibly remapping the path in the process. Useful when running a reloading build system on one machine and editing files on another, or over shared folders to a VM.
Supports Linux/inotify and Mac OS X/fsevents on the host side, and Linux, Mac OS X, and BSD on the client side.
Either use one of the pre-built binary releases for your operating system:
Or download the source and compile it yourself:
.. code-block:: sh
$ git clone git@github.com:mhallin/notify-forwarder.git $ make
To map the current directory to "/home/user/project" on a remote machine, run the following on the host side:
.. code-block:: sh
$ notify-forwarder watch -c
And on the client side:
.. code-block:: sh
$ notify-forwarder receive
The "host side" here being the file system that will send events, i.e. where you run the text editor. The "client side" is where the auto reloading build system runs.
.. _notify-forwarder_osx_x64: https://github.com/mhallin/notify-forwarder/releases/download/release%2Fv0.1.0/notify-forwarder_osx_x64 .. _notify-forwarder_linux_x64: https://github.com/mhallin/notify-forwarder/releases/download/release%2Fv0.1.0/notify-forwarder_linux_x64 .. _notify-forwarder_freebsd_x64: https://github.com/mhallin/notify-forwarder/releases/download/release%2Fv0.1.0/notify-forwarder_freebsd_x64