← All tools

watchexec Gem

Re-run any command when files change.

What it is

watchexec watches a directory (respecting .gitignore) and restarts a command on change. It works for any language or tool, not just ones with a built-in watch mode.

Instead of

nodemon, entr, per-tool --watch flags

Reach for it when

You keep pressing up-arrow + enter to re-run tests or a server.

Try it in a few minutes

brew install watchexec   # or cargo install watchexec-cli
watchexec -e ts,tsx -- npm test
watchexec -r -- go run .

Related

zoxide Gem

A smarter cd that learns the directories you use most.

Instead of: cd ../../.. and long path tab-completion

lazygit Gem

A fast terminal UI for git: staging hunks, rebasing and resolving conflicts.

Instead of: git add -p, git rebase -i in an editor, GUI clients

just Gem

A command runner: Make-style recipes without Make's build-system baggage.

Instead of: Makefiles used as task runners, scattered npm scripts and README command lists

Atuin Gem

Searchable shell history with context, and optional encrypted sync between machines.

Instead of: Ctrl-R and a ~/.bash_history that loses commands