1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-09-13 01:27:56 +00:00

shells: fix using intellij

This commit is contained in:
RGBCube 2025-08-07 18:45:02 +03:00
parent 4636754606
commit f96334ea87
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

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