home-profile & os-profile: zsh compinit changes

This commit is contained in:
2024-04-01 22:52:49 +02:00
parent 0c31caf113
commit 47c8d1c4ea
6 changed files with 38 additions and 28 deletions
@@ -0,0 +1,7 @@
{
imports = [
./zsh.nix
];
}
+20
View File
@@ -0,0 +1,20 @@
{materusArg, config, pkgs, lib, ...}:
let
cfg = config.materus.profile.zsh;
in
{
options.materus.profile.zsh.enable = materusArg.pkgs.lib.mkBoolOpt true "Enable materus system zsh config";
config = lib.mkIf cfg.enable {
programs.zsh = {
enable = true;
enableGlobalCompInit=false;
interactiveShellInit = ''
if [[ ''${__MATERUS_HM_ZSH:-0} == 0 ]]; then
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
fi
'';
promptInit = ''
'';
};
};
}