aboutsummaryrefslogtreecommitdiffstats
path: root/users/hanna/configs/zsh/completion.nix
blob: 3fbc345cc49e56c295de563f76a6ef34a3753f85 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, ... }:

let
  xdg = {
    state = config.xdg.state.directory;
    data = config.xdg.data.directory;
    cache = config.xdg.cache.directory;
    config = config.xdg.config.directory;
  };
in {
  xdg.config.files."zsh/completion" = {
    executable = true;

    text = ''
      autoload -U compinit
      compinit -d "${xdg.state}/zsh/completion"
    '';
  };
}