1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-25 19:29:47 +01:00

fzf: fix fish integration

Since fzf 0.43.0, the fzf_key_bindings function is only defined when
fish is running interactively, see [1].
This caused errors when entering non-interactive fish shells since we
called fzf_key_bindings during startup.

[1]: 7e89458a3b
This commit is contained in:
r-vdp 2023-10-18 10:26:09 +02:00 committed by Mikilio
parent 599ae76b5f
commit c1f8ffca76
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F

View file

@ -190,7 +190,7 @@ in {
fi fi
''); '');
programs.fish.shellInit = mkIf cfg.enableFishIntegration '' programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration ''
source ${cfg.package}/share/fzf/key-bindings.fish && fzf_key_bindings source ${cfg.package}/share/fzf/key-bindings.fish && fzf_key_bindings
''; '';
}; };