fzf: only enable when line editing is available
Fixes #401 Suggested-by: Alex Vorobiev Suggested-by: Mario Rodas
This commit is contained in:
parent
0435d9c338
commit
8d4c65f259
|
@ -122,13 +122,17 @@ in
|
||||||
);
|
);
|
||||||
|
|
||||||
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
||||||
. ${pkgs.fzf}/share/fzf/completion.bash
|
if [[ :$SHELLOPTS: =~ :(vi|emacs): ]]; then
|
||||||
. ${pkgs.fzf}/share/fzf/key-bindings.bash
|
. ${pkgs.fzf}/share/fzf/completion.bash
|
||||||
|
. ${pkgs.fzf}/share/fzf/key-bindings.bash
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
||||||
. ${pkgs.fzf}/share/fzf/completion.zsh
|
if [[ $options[zle] = on ]]; then
|
||||||
. ${pkgs.fzf}/share/fzf/key-bindings.zsh
|
. ${pkgs.fzf}/share/fzf/completion.zsh
|
||||||
|
. ${pkgs.fzf}/share/fzf/key-bindings.zsh
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue