Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 720 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 720 Bytes

reload

Add reload in front of your command to automatically rerun the command when you make file changes.

reload uses the following heuristics:

  • If there are any files present in the command, it watches those files
  • If no files are present, it watches the whole current directory

If you have a command pipeline, using && or ||, you'll need to quote the command.

Examples

  • reload python3 main.py
  • reload 'gcc main.c && ./a.out'
  • reload make

Install

go install github.com/vegarsti/reload@latest

Supported platforms

reload uses the fsnotify cross-platform filesystem notification library which supports macOS, Windows, Linux, and others.