Add fzf
This commit is contained in:
parent
cbdf7d65a5
commit
915bde542c
|
|
@ -44,6 +44,9 @@ in
|
||||||
];
|
];
|
||||||
shell = pkgs.${shellCfg.defaultShell};
|
shell = pkgs.${shellCfg.defaultShell};
|
||||||
ignoreShellProgramCheck = true;
|
ignoreShellProgramCheck = true;
|
||||||
|
packages = with pkgs; [
|
||||||
|
fzf
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Set /etc/shells so GDM will show our user when ZSH is selected
|
# Set /etc/shells so GDM will show our user when ZSH is selected
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,8 @@ in
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = cfg.enable;
|
enable = cfg.enable;
|
||||||
dotDir = "${xdgCfg.configHome}/zsh";
|
dotDir = "${xdgCfg.configHome}/zsh";
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = false;
|
||||||
|
enableCompletion = true;
|
||||||
syntaxHighlighting = {
|
syntaxHighlighting = {
|
||||||
enable = true;
|
enable = true;
|
||||||
highlighters = [
|
highlighters = [
|
||||||
|
|
@ -28,9 +29,13 @@ in
|
||||||
};
|
};
|
||||||
historySubstringSearch.enable = true;
|
historySubstringSearch.enable = true;
|
||||||
history = {
|
history = {
|
||||||
|
append = true;
|
||||||
ignoreDups = false;
|
ignoreDups = false;
|
||||||
|
ignoreSpace = true;
|
||||||
save = 100000;
|
save = 100000;
|
||||||
|
share = true;
|
||||||
size = 100000;
|
size = 100000;
|
||||||
|
extended = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
initContent = ''
|
initContent = ''
|
||||||
|
|
@ -45,6 +50,12 @@ in
|
||||||
|
|
||||||
# Tab to accept current selection
|
# Tab to accept current selection
|
||||||
bind-key -M menuselect '^I' accept-and-infer-next-history
|
bind-key -M menuselect '^I' accept-and-infer-next-history
|
||||||
|
|
||||||
|
# Load fzf keybindings
|
||||||
|
if [ -n "''${commands[fzf-share]}" ]; then
|
||||||
|
source "$(fzf-share)/key-bindings.zsh";
|
||||||
|
source "$(fzf-share)/completion.zsh";
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue