diff --git a/README.md b/README.md new file mode 100644 index 0000000..3f3d0d6 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# inotifyrun +Run a command every time a file is opened + +## Setup +1. Clone: `git clone https://gitlab.com/niansa/inotifyrun.git --recursive && cd inotifyrun` +2. Compile: `clang -rdynamic inotifyrun.c libcatch/libcatch.c -o inotifyrun` +3. Install: `sudo cp inotifyrun /usr/local/bin/` + +## Usage +This should be self-explanatory: + +`inotifyrun ./test.sh "echo hi" ~/Documents/table.odt "killall libreoffice"` \ No newline at end of file