aboutsummaryrefslogtreecommitdiffstats
path: root/modules/terminal/fzf/assertions.nix
blob: 75006fea060aa86c1b41784fe4928fe8d904cd35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# fzf shell integration is only provided for zsh. bash is scripting-only
# (not a login shell), so it does not receive fzf integration.
{ config, ... }:
{
  assertions = [
    {
      assertion = !config.terminal.fzf.enable || config.terminal.zsh.enable;
      message = ''
        terminal.fzf is enabled but terminal.zsh.enable is not set.
        fzf shell integration requires zsh. Please enable zsh.
      '';
    }
  ];
}