summaryrefslogtreecommitdiff
path: root/home/zsh/default.nix
blob: f6706af63a6c397b592bd6c77ff8673585da6a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
  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;
    dotDir = "${config.xdg.configHome}/zsh";
  };

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