~ruther/nixos-config

ref: faf2c7a5e962ad4b4d3750341c1cce1a1c2e1d0b nixos-config/modules/shell/zsh.nix -rw-r--r-- 519 bytes
faf2c7a5 — Frantisek Bohacek chore: update lock 1 year, 7 months ago
                                                                                
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
#
# Shell
#

{ pkgs, ... }:

{
  programs = {
    starship = {
      enable = true;
    };
    zsh = {
      enable = true;
      enableAutosuggestions = true;
      syntaxHighlighting.enable = true;
      enableCompletion = true;
      history.size = 100000;

      oh-my-zsh = {                               # Extra plugins for zsh
        enable = true;
        plugins = [ "git" ];
      };

      initExtra = ''
        function loc {
          nix-locate --top-level -w /bin/$1
        }
      '';
    };
  };
}
Do not follow this link