Skip to content

Commit

Permalink
fix(zsh): long initial loading time
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Feb 5, 2025
1 parent 8bc31cf commit 198898e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/apps/zsh/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
inputs,
osConfig,
config,
lib,
pkgs,
Expand Down Expand Up @@ -45,6 +46,12 @@ in
run mkdir -p ${config.xdg.stateHome}/zsh || true
'';
};

# hack to persist .zcompdump file
persistence."${osConfig.mySystem.impermanence.persistPath}${config.home.homeDirectory}".directories =
lib.mkIf osConfig.mySystem.impermanence.enable [
".config/zsh"
];
};

programs.zsh = {
Expand Down

0 comments on commit 198898e

Please sign in to comment.