Skip to content

direnv times out when starting a new shell #3

@markfaine

Description

@markfaine

Prerequisites

  • I've checked the existing issues and I'm not duplicating a report.
  • I've checked the zimfw Changelog and I'm not being affected by documented changes.
  • I've checked the zimfw 📢 Announcements and I'm not being affected by announced changes.

Bug description

I see the error message on a new login shell: As far as I can tell, direnv is never setup.

direnv: ([/home/mfaine/.asdf/installs/direnv/2.35.0/bin/direnv export zsh]) is taking a 
while to execute. Use CTRL-C to give up.

If I disable it and do manually:

eval "$(direnv hook zsh)"

It works fine. Should it be executing direnv hook zsh

direnv 2.35.0
WSL version: 2.4.12.0
Ubuntu 24.10
zimfw 1.18.0

Steps to reproduce

Start the shell

Current behavior

I see the error message on a new login shell: As far as I can tell, direnv is never setup.

direnv: ([/home/mfaine/.asdf/installs/direnv/2.35.0/bin/direnv export zsh]) is taking a 
while to execute. Use CTRL-C to give up.

If I disable it and do manually:

eval "$(direnv hook zsh)"

It works fine. Should it be executing direnv hook zsh

Expected behavior

Normal execution and integration into the shell

zimfw info

ZIM_HOME:             /home/mfaine/.zim
zimfw config:         /home/mfaine/.zimrc -> /home/mfaine/dotfiles/zsh/.zimrc
zimfw script:         /home/mfaine/.zim/zimfw.zsh
zimfw version:        1.18.0 (built at 2025-03-20 20:43:33 UTC, previous commit is 7d0a56b)
LANG:                 en_US.UTF-8
OSTYPE:               linux-gnu
TERM:                 xterm-256color
TERM_PROGRAM:
TERM_PROGRAM_VERSION:
ZSH_VERSION:          5.9

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions