Ken Powers

Ken Powers

"With Ken Powers Comes Ken Responsibility"

Christian, Husband, Father, Software Engineer.

Latest Post

View All Posts →

Using Direnv to Automatically Manage Git Hooks

The recent release of npm@7 broke husky, my git hook management tool of choice. When I was looking into why my git hooks had stopped working I came across the docs for the next version of husky and saw that git hooks will now be stored in a committed directory rather than inside package.json. This got me thinking; do I really need husky? Surely there must be a simple method to manage a directory of git hooks inside your repository. I want something that's (mostly) automatic, safe, easy, and preferably uses tooling I'm already familiar with (installing a global dependency just to manage git hooks on a per-project basis is somewhat less than ideal).

Read More