diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index 0359796f0..24c00f674 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -215,6 +215,12 @@ in description = "Environment variables that will be set for zsh session."; }; + initExtraBeforeCompInit = mkOption { + default = ""; + type = types.lines; + description = "Extra commands that should be added to .zshrc before compinit."; + }; + initExtra = mkOption { default = ""; type = types.lines; @@ -341,6 +347,8 @@ in ${localVarsStr} + ${cfg.initExtraBeforeCompInit} + ${concatStrings (map (plugin: '' path+="$HOME/${pluginsDir}/${plugin.name}" fpath+="$HOME/${pluginsDir}/${plugin.name}"