Hi, I am Kiru 👋 an indie hacker, a problem solver and vim-lover. I build projects to make the life of others and mine easier.

This page is intended to collect all my projects and some thoughts.

Execute python file on change fswatch

TIL 22.10.2019

fswatch tracks file system events. Execute a command on file change (taken from 1 as reference to search in the future):

fswatch -0 file.py | xargs -0 -I {} command

Explanation:

  • -O split record by NUL character

  • xargs -O matches fswatch splitting

  • -I run given command on each file changes

Learn more: