~ruther/nixos-config

ref: 2388fbfcabdfe5be09522c6e3ec529aa9afe17d6 nixos-config/modules/shell/zsh.nix -rw-r--r-- 556 bytes
2388fbfc — Frantisek Bohacek chore: move tridactyl native to nativeMessagingHosts 1 year, 6 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
32
33
#
# 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
        }

        source /etc/set-environment
      '';
    };
  };
}
Do not follow this link