Skip to content

Conversation

@lox
Copy link
Owner

@lox lox commented Oct 5, 2025

Summary

  • Rename direnv/path.zsh to direnv/direnv.zsh so it loads in all environments
  • Fix shebang to use zsh instead of bash

Problem

Previously, direnv/path.zsh was only loaded when HERMIT_ENV was not set (see zsh/main.zsh:17-26). This caused direnv to not work in Hermit environments because the hook was never being loaded.

Solution

Renamed to direnv/direnv.zsh so it loads with the other config files regardless of Hermit environment status.

Test plan

  • Committed and tested locally
  • Reload shell with exec zsh
  • Verify direnv works in Hermit environments

Rename direnv/path.zsh to direnv/direnv.zsh so it loads in all environments.

Previously, direnv hook was in path.zsh which is only loaded when
HERMIT_ENV is not set. This caused direnv to not work in Hermit
environments.

Also fix shebang to use zsh instead of bash.
@lox lox merged commit c7a4ff6 into main Oct 5, 2025
1 check passed
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.

2 participants