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)
This commit is contained in:
parent
216690777e
commit
ccd7df836e
1 changed files with 3 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue