summaryrefslogtreecommitdiff
path: root/home/zsh/default.nix
blob: 6af8cf11ea8e0cea43d433a1bedc7a643ca5f289 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  config,
  lib,
  ...
}: {
  programs.zsh = {
    enable = true;
    enableCompletion = true;
    autosuggestion = {
      enable = true;
      highlight = "fg=#${config.theme.colors.subtext}";
    };
    syntaxHighlighting.enable = true;
    history.size = 10000;
    profileExtra = lib.fileContents ./zprofile;
    initContent = lib.fileContents ./zshrc;
  };

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