when-changed
Run a command when a file is changed
~ What is it?
Tired of switching to the shell to test the changes you just made to your code? Starting to feel like a mindless drone, manually running pdflatex for the 30th time to see how your resume now looks?
Worry not, when-changed is here to help! Whenever it sees that you have changed the file, when-changed runs any command you specify.
So to generate your latex resume automatically, you can do this:
$ when-changed CV.tex pdflatex CV.tex
Sweetness!
~ What do I need?
Python 2.6+ watchdog
~ Installation
pip install https://github.com/joh/when-changed/archive/master.zip
~ Usage
when-changed FILE COMMAND… when-changed FILE [FILE …] -c COMMAND
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file when-changed-0.3.0.tar.gz.
File metadata
- Download URL: when-changed-0.3.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f0b90c5f725223aab77290b4ce5cd79672702a1f3fbe620bdef440c106418e2
|
|
| MD5 |
39fa3fd9789b7fe3f6db711307af318e
|
|
| BLAKE2b-256 |
833380d220730dddda0cc99eac3c76409d9d8a60a799d0e0fcc6e010c14c2834
|