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 ''; }))