Skip to content

vegarsti/reload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.