summaryrefslogtreecommitdiff
path: root/home/zsh/default.nix
blob: 91c7ba3a08dabffec15368ff21e99e90285e47ba (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
{ pkgs, config, lib, ... }:

{
  imports =
    [
      ./plugins.nix
    ];

  programs.zsh = {
    enable = true;

    defaultKeymap = "viins";

    # Feeble attempt at cleaning up home directory.
    # TODO: dotDir = (pathRelativeTo config.xdg.configHome config.home) + "/zsh";
    dotDir = ".config/zsh";
    history.path = config.xdg.cacheHome + "/zsh/history";

    initExtra = ''
      PROMPT='%F{41}->%f %B%(2L.LVL%L .)%b%F{red}%(?..E%? )%f%n@%U%m%u:%15<...<%~%<<%# '
    '';
  };

  programs.fzf = {
    enable = true;
    enableZshIntegration = true;
  };
}