From b5f4f559b84fa12c4f090cfc9c63e6e827890ce8 Mon Sep 17 00:00:00 2001 From: niansa Date: Sun, 11 Oct 2020 10:18:39 +0000 Subject: [PATCH] Added readme --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 README.md 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