Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 457 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 457 Bytes

Watch

Simple watch function to do a command whenever certain files change.

Simply source watch.zsh in your ~/.zshrc to get access to the watch command.

Docs

Usage:

watch <CMD> <FILES>

You can pass any command in quotes and you can pass any number of files either as a list or through using a glob pattern.

For instance, to watch all the C files in a directory and make whenever they change, you can just:

watch make **/*.c