From fbbc9c0f791942e852bdfd808740132ba34f2359 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Tue, 28 Jan 2025 09:48:28 +1000 Subject: [PATCH] modules/shared/community-builder: disable grml zsh prompt on darwin --- modules/shared/community-builder.nix | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/modules/shared/community-builder.nix b/modules/shared/community-builder.nix index 3f40622..798726e 100644 --- a/modules/shared/community-builder.nix +++ b/modules/shared/community-builder.nix @@ -68,14 +68,17 @@ useBabelfish = true; }; - programs.zsh = { - enable = true; - # https://grml.org/zsh/grmlzshrc.html - # https://grml.org/zsh/grml-zsh-refcard.pdf - interactiveShellInit = '' - source ${pkgs.grml-zsh-config}/etc/zsh/zshrc - ''; - promptInit = ""; # otherwise it'll override the grml prompt - }; + programs.zsh = + { + enable = true; + } + // lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux { + # https://grml.org/zsh/grmlzshrc.html + # https://grml.org/zsh/grml-zsh-refcard.pdf + interactiveShellInit = '' + source ${pkgs.grml-zsh-config}/etc/zsh/zshrc + ''; + promptInit = ""; # otherwise it'll override the grml prompt + }; }; }