~ruther/nixos-config

ref: 665daaa12f179d1fbabf45d3393eb0b21117452a nixos-config/modules/shell/zsh.nix -rw-r--r-- 519 bytes
665daaa1 — Frantisek Bohacek feat(emacs): add verilog-ext 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