summaryrefslogtreecommitdiff
path: root/use-cases/zsh/default.nix
blob: 1b8ce16ea3c8939881da91803e2b4b8617fa7114 (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
{ 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";

  };

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