From fc5619764e20b9e94fe1a952c88d5f770e0007c0 Mon Sep 17 00:00:00 2001 From: happysalada Date: Sat, 10 Oct 2020 14:16:50 +0900 Subject: [PATCH] skim: add fish integration Add fish integration to `programs.skim`. PR #1549 --- modules/programs/skim.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/programs/skim.nix b/modules/programs/skim.nix index c90fe1b1a..40377054b 100644 --- a/modules/programs/skim.nix +++ b/modules/programs/skim.nix @@ -91,6 +91,14 @@ in { Whether to enable Zsh integration. ''; }; + + enableFishIntegration = mkOption { + default = true; + type = types.bool; + description = '' + Whether to enable Fish integration. + ''; + }; }; config = mkIf cfg.enable { @@ -120,5 +128,9 @@ in { . ${pkgs.skim}/share/skim/key-bindings.zsh fi ''; + + programs.fish.shellInit = mkIf cfg.enableFishIntegration '' + source ${pkgs.skim}/share/skim/key-bindings.fish && skim_key_bindings + ''; }; }