Skip to content

Commit 3146009

Browse files
authored
feat: add support for mise (#1007)
1 parent 38390de commit 3146009

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/mdbook/installation/mise.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Mise
2+
3+
```bash
4+
mise use lefthook@latest
5+
```
6+
7+
**Note**: The mise plugin for lefthook is maintained by the community. While we appreciate their contribution, the lefthook team cannot provide direct support for mise-specific installation issues.

internal/templates/hook.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ call_lefthook()
8484
elif uv run lefthook -h >/dev/null 2>&1
8585
then
8686
uv run lefthook "$@"
87+
elif mise exec -- lefthook -h >/dev/null 2>&1
88+
then
89+
mise exec -- lefthook "$@"
8790
else
8891
echo "Can't find lefthook in PATH"
8992
{{- if .AssertLefthookInstalled}}

0 commit comments

Comments
 (0)