Added readme

This commit is contained in:
niansa 2020-10-11 10:18:39 +00:00
parent 1cbd9511f8
commit b5f4f559b8

12
README.md Normal file
View file

@ -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"`