1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

fzf: support fish integration

Create the `enableFishIntegration` option to install the fzf
key-bindings for people who use fish shell.

PR #1074
This commit is contained in:
William Carroll 2020-03-06 11:28:13 +00:00 committed by Robert Helgesson
parent faa2945606
commit 71c7aaee83
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -100,6 +100,14 @@ in {
Whether to enable Zsh integration.
'';
};
enableFishIntegration = mkOption {
default = true;
type = types.bool;
description = ''
Whether to enable Fish integration.
'';
};
};
config = mkIf cfg.enable {
@ -130,5 +138,9 @@ in {
. ${pkgs.fzf}/share/fzf/key-bindings.zsh
fi
'';
programs.fish.shellInit = mkIf cfg.enableFishIntegration ''
source ${pkgs.fzf}/share/fzf/key-bindings.fish && fzf_key_bindings
'';
};
}