Jonas Chevalier

Results 831 comments of Jonas Chevalier

@a4z are you also on zsh and macOS?

Can you give me these outputs: ``` $ echo "${chpwd_functions[@]}" $ echo "${precmd_functions[@]}" $ direnv status ```

Can you try to set `precmd_functions=(_direnv_hook)`?

Another thing that might have caused an issue is that the hook now traps for errors. ``` $ type -f _direnv_hook _direnv_hook() { trap -- '' SIGINT; eval "$("/nix/store/9lmh6ryhdkxbi4w5cp730s24ksa14vs1-direnv-2.27.0/bin/direnv" export...

What that means is that one of the other commands in this list is interfering with direnv: ```sh precmd_functions=(_p9k_do_nothing _zsh_highlight_main__precmd_hook omz_termsupport_precmd asdf_update_java_home _direnv_hook iterm2_precmd _p9k_precmd) ``` To debug that, try...

It looks like this is a bug in go-md2man. There is an upstream PR that fixes the issue, but no release has been made since 2019: https://github.com/cpuguy83/go-md2man/pull/56

I get what you are saying and it also crossed my mind. Another advantage of sub-shell is that they can also support loading shell aliases and functions. The `.envrc` format...

In some ways, that would be a simpler and more generic tool. One difficulty would be to integrate with editors if they are started outside of the project. With direnv,...

Sounds interesting. It would add quite a bit of complexity on top of direnv so I am unlikely to implement it myself. If you want to give it a go,...

Try adding `eval "$(direnv export bash)"` after every time that the current directory is being changed. In a normal shell this is executed on every prompt but since now prompt...