summaryrefslogtreecommitdiff
path: root/home/zsh/default.nix
blob: 92fd0ce8b9f1cc36df042ca5627fe0ea20a9ee69 (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
25
26
27
{
  config,
  lib,
  ...
}: {
  programs.zsh = {
    enable = true;
    enableCompletion = true;
    autosuggestion = {
      enable = true;
      highlight = "fg=#${config.theme.colors.subtext}";
    };
    syntaxHighlighting.enable = true;
    dotDir = "${config.xdg.configHome}/zsh";

    # update conf
    history.size = 10000;
    profileExtra = lib.fileContents ./zprofile;
    initContent = lib.fileContents ./zshrc;
    completionInit = "";
  };

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