[go: up one dir, main page]

Skip to content

tiny bash script to listen for file changes and trigger a command

Notifications You must be signed in to change notification settings

hankpillow/wtchr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

wtchr

Tiny bash script to watch for file changes and trigger another command.

The changes captured won't be sent to the trigger!

The command uses find to list all files in the target folder.

Install

curl https://raw.githubusercontent.com/hankpillow/wtchr/master/wtchr -o /usr/bin/wtchr
chmod +x /usr/bin/wtchr

Usage:

$ wtchr tmp/ "echo changed!"

You can pass args to find command:

$ wtchr "tmp/" "echo changed!" '-not -path "*.md"'

About

tiny bash script to listen for file changes and trigger a command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages