~ruther/nixos-config

ref: 90b6c1b070df88e04d008ea8b4180f488efc5f05 nixos-config/modules/shell/zsh.nix -rw-r--r-- 519 bytes
90b6c1b0 — Frantisek Bohacek feat: add alias for locating binaries 1 year, 5 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