From f96334ea87ce88b68fce891accc330ca8638b0e4 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Thu, 7 Aug 2025 18:45:02 +0300 Subject: [PATCH] shells: fix using intellij --- modules/common/shell/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/common/shell/default.nix b/modules/common/shell/default.nix index 9f68be9..ed3fa7b 100644 --- a/modules/common/shell/default.nix +++ b/modules/common/shell/default.nix @@ -64,11 +64,14 @@ in { // homeSessionVariablesExtra // homeSessionSearchVariables; in { - home.file.".zshrc".text = mkIf config.isDarwin /* zsh */ '' + home.file.".zshrc".text = /* zsh */ '' ${homeSessionVariables |> mapAttrsToList (name: value: "export ${name}='${value}'") |> concatStringsSep "\n"} - SHELL='${getExe <| head config'.shellsByPriority}' exec "$SHELL" + + if [ -z "$INTELLIJ_ENVIRONMENT_READER" ]; then + SHELL='${getExe <| head config'.shellsByPriority}' exec "$SHELL" + fi ''; }))