watch file and reload a command on file reload

npm install -g reload-cli
echo complete -o filenames -F _root_command reload >> ~/.bashrc

You may need sudo to run npm. The second line is to make auto-completion work.

reload python

For example, you want to run python frequently to see the result, as you write the script. reload will read the paramaters as ['', ''], if the paramater points to a file, reload will watch it. Then, the command restarts when file changes are caught.