aboutsummaryrefslogtreecommitdiff
path: root/macos.local/flake/home/programs/zsh/core.nix.org
blob: 84e9affcbc52f4de8c4c8f307e5400adbb32f24d (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
28
29
30
31
32
33
34
35
36
#+title: ZSH Configuration

Open =zsh= configuration.
#+begin_src nix
  { config, pkgs, ... }:

  {
    programs.zsh = {
      enable = true;

      autocd = true;

      autosuggestion.enable = true;

      defaultKeymap = "emacs";

      history = {
        append = true;
        ignoreAllDups = true;
      };

      shellAliases = {
        "ll" = "ls -alF";
        "la" = "ls -a";
        "l" = "ls -F";
        "sl" = "ls";
      };

      syntaxHighlighting.enable = true;

      initExtra = builtins.readFile ./init-extra.sh;

      profileExtra = builtins.readFile ./profile-extra.sh;
    };
  }
#+end_src