From ccd7df836e1f42ea84806760f25b77b586370259 Mon Sep 17 00:00:00 2001 From: wyyllou Date: Mon, 31 Mar 2025 17:23:33 +0100 Subject: [PATCH] mcfly: Fix fzf overriding mcfly's Ctrl+R bind on fish(#6736) This commit moves both mcfly and mcfly-fzf into the main is-interactive block for fish, which is technically unneccesary as the checks are done internally (but mcfly-fzf is broken in this regard bnprks/mcfly-fzf#10) --- modules/programs/mcfly.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/programs/mcfly.nix b/modules/programs/mcfly.nix index ef5a98e6..4ff43e5a 100644 --- a/modules/programs/mcfly.nix +++ b/modules/programs/mcfly.nix @@ -23,9 +23,7 @@ let fishIntegration = '' ${getExe pkgs.mcfly} init fish | source '' + optionalString cfg.fzf.enable '' - if status is-interactive - eval "$(${getExe pkgs.mcfly-fzf} init fish)" - end + eval "$(${getExe pkgs.mcfly-fzf} init fish)" ''; zshIntegration = '' @@ -143,7 +141,8 @@ in { programs.zsh.initContent = mkIf cfg.enableZshIntegration zshIntegration; - programs.fish.shellInit = mkIf cfg.enableFishIntegration fishIntegration; + programs.fish.interactiveShellInit = + mkIf cfg.enableFishIntegration fishIntegration; home.sessionVariables.MCFLY_KEY_SCHEME = cfg.keyScheme;