mirror of
https://gitlab.com/niansa/inotifyrun.git
synced 2025-03-06 20:48:32 +01:00
Added readme
This commit is contained in:
parent
1cbd9511f8
commit
b5f4f559b8
1 changed files with 12 additions and 0 deletions
12
README.md
Normal file
12
README.md
Normal 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"`
|
Loading…
Add table
Reference in a new issue