fix: zellij switch command on darwin

This commit is contained in:
Noah Masur
2025-11-26 13:15:30 -07:00
parent 235901b3b0
commit b6e7221cc6

View File

@@ -123,9 +123,15 @@ in
shared = { shared = {
"bind \"Alt Shift s\"" = { "bind \"Alt Shift s\"" = {
Run = { Run = {
_args = [ _args =
if pkgs.stdenv.isDarwin then
[
"env"
"PATH=${config.home.homeDirectory}/.nix-profile/bin:/usr/bin:/bin"
(lib.getExe zellij-switch-to-last) (lib.getExe zellij-switch-to-last)
]; ]
else
[ (lib.getExe zellij-switch-to-last) ];
close_on_exit = true; close_on_exit = true;
}; };
}; };