Open tcoopman opened 2 months ago
I have this problem as well. In my case, I have a nix shell that has rust dependencies (cargo) with direnv as a hook to enter the nix shell. Everything works if I open a pane then run, e.g. cargo --version
. But if I try to run it in a floating window, e.g. zellij run --floating -- cargo clippy
it says cargo
is not found
version: zellij 0.40.0
Issue: I'm using https://github.com/nix-community/nix-direnv to load flakes when I navigate in a folder with an
.env
file. This is loaded via afish.config
hook. When I usezellij
normal without layouts, this always works fine. When I enter a directory, or when I open a new pane, the correctenv
file is loaded.However, when I define a layout that has some commands or an edit pane, then
env
file is not loaded - this points to me that the fish hooks are not run for these panes.The problem is that I
use flake
to setup the correct language/lsp/tools per project. But because zellij doesn't load these, usingzellij -l welcome
to set the session folder and use a layout are useless.Steps to reproduce:
.env
file that loads some flakes/nix fileszellij -l welcome
point to the folder and use the layout.env
file is not loaded for the panes that run a command/start an editor.env
file is loaded for the normal panes.