anchor.diff:    pluginsDir = if cfg.dotDir != null then
       relToDotDir "plugins" else ".zsh/plugins";
   
  +  export = n: v: "export ${n}=\"${toString v}\"";
  +
  +  toEnvVarsStr = vars: concatStringsSep "\n" (
  +    mapAttrsToList export vars
  +  );
  +
  +  envVarsStr = toEnvVarsStr config.home.sessionVariables;
  +
  +  aliasesStr = concatStringsSep "\n" (
  +    mapAttrsToList (k: v: "alias ${k}='${v}'") cfg.shellAliases
  +  );
  +
  +  zdotdir = "$HOME/" + cfg.dotDir;
   
     historyModule = types.submodule {
       options = {
  
positive.code:         ${cfg.initExtra}
  
          ${aliasesStr}
        '';
      })
      (mkIf cfg.oh-my-zsh.enable {
  
negative.code:     };
    };
  
    config = mkIf cfg.enable (mkMerge [
      {
        home.packages = with pkgs; [ zsh ]
          ++ optional cfg.enableCompletion nix-zsh-completions
          ++ optional cfg.oh-my-zsh.enable oh-my-zsh;
  
  
        home.file."${relToDotDir ".zshrc"}".text = ''
          ${export "HISTSIZE" cfg.history.size}
  