aboutsummaryrefslogtreecommitdiff
path: root/modules/user/zsh/default.nix
blob: 6f49406d1e86f7e01137d737d5285d732e058575 (plain) (blame)
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
{
  config,
  lib,
  options,
  ...
}:
{
  config.programs.zsh = {
    enable = lib.mkDefault true; # default user shell
    autocd = true;
    autosuggestion = {
      enable = lib.mkDefault true;
      strategy = [
        "history"
        "completion"
      ];
    };

    history.ignoreAllDups = true;
    initContent = builtins.readFile ./zshrc.zsh;
    #loginExtra = builtins.readFile ./zlogin.zsh;
    setOptions = [ "extendedglob" ];
    syntaxHighlighting.enable = true;
  };
}