summaryrefslogtreecommitdiff
path: root/home/zsh/default.nix
blob: 5de1c7cecf26df387f4b4eea867b8192fd33a68c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{config, ...}: {
  programs.zsh = {
    enable = true;
    enableCompletion = true;
    enableGlobalCompInit = false;
    autosuggestions.enable = true;
    syntaxHighlighting.enable = true;
    histSize = 10000;
  };

  home-manager.users.${config.user} = {
    home.file = {
      ".zshrc".source = ./zshrc;
      ".zprofile".source = ./zprofile;
    };

    programs.zoxide = {
      enable = true;
      enableZshIntegration = true;
    };
  };
}