Setup fzf history search for zsh and bash

This commit is contained in:
2026-04-07 18:14:28 +02:00
parent bc607c2956
commit d9ef3b056e

View File

@@ -1,6 +1,13 @@
{ config, lib, ... }:
{
programs.fzf = {
enable = true;
enableZshIntegration = true;
enableBashIntegration = true;
defaultOptions = [ "--height 40%" "--layout=reverse" "--border" ];
};
programs.zsh = {
enable = true;
dotDir = "${config.xdg.configHome}/zsh";
@@ -14,9 +21,6 @@
};
initContent = ''
bindkey '^R' history-incremental-search-backward
bindkey '^S' history-incremental-search-forward
autoload -Uz vcs_info
precmd() { vcs_info }
zstyle ':vcs_info:git:*' formats '%b'