summaryrefslogtreecommitdiff
path: root/home/zsh/default.nix
blob: 2df01ef870fad1b540eb52e3b78f52a6bc7c3c37 (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;
    envExtra = lib.fileContents ./zshrc;
  };

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