From 942cfd840a455a249cb3d792575b03047d7887eb Mon Sep 17 00:00:00 2001
From: Jens Nolte <git@queezle.net>
Date: Sat, 14 Aug 2021 23:57:36 +0200
Subject: [PATCH] zsh: Disable newuser-install prompt

---
 layers/zsh.nix | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/layers/zsh.nix b/layers/zsh.nix
index 70fef95..89c1f63 100644
--- a/layers/zsh.nix
+++ b/layers/zsh.nix
@@ -87,7 +87,13 @@ in
     "hist_fcntl_lock"
   ];
 
+  programs.zsh.shellInit = ''
+    # Disable new-user configuration
+    zsh-newuser-install() { :; }
+  '';
+
   programs.zsh.interactiveShellInit = ''
+
     fpath+=$LOCAL_ZSH_COMPLETION_PATH
 
     zstyle ':completion:*' auto-description '%d'
-- 
GitLab