Skip to content

Add --system flag for system-wide install/disable#8

Merged
alecthomas merged 1 commit intomainfrom
system-install-flag
Mar 16, 2026
Merged

Add --system flag for system-wide install/disable#8
alecthomas merged 1 commit intomainfrom
system-install-flag

Conversation

@alecthomas
Copy link
Copy Markdown
Collaborator

  • Install hooks to /usr/local/libexec/lhm/hooks/ with git config --system
  • Write default config to /usr/local/etc/lefthook.yaml
  • Require root for --system operations
  • Three-layer config merge: system, user, repo/adapter
  • Move user paths to ~/.local/ to mirror /usr/local/ structure

- Install hooks to /usr/local/libexec/lhm/hooks/ with git config --system
- Write default config to /usr/local/etc/lefthook.yaml
- Require root for --system operations
- Three-layer config merge: system, user, repo/adapter
- Move user paths to ~/.local/ to mirror /usr/local/ structure
@alecthomas alecthomas merged commit e332328 into main Mar 16, 2026
4 of 5 checks passed
@alecthomas alecthomas deleted the system-install-flag branch March 16, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant