summaryrefslogtreecommitdiff
path: root/home/zsh/default.nix
blob: b5f17eaf92e4b6a434910b3d810d5adfa6346804 (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
{config, pkgs, ...}: {
  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;
      ".nixenv".source = pkgs.writeText "nixenv" ''
        # nix shell env auto generated file
        export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#${config.theme.colors.subtext}'
      '';
    };

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