This commit is contained in:
Joshua Yuen 2025-08-22 11:25:22 -04:00
parent cbdf7d65a5
commit 915bde542c
Signed by: josh
GPG Key ID: 502720BC22ED411C
2 changed files with 15 additions and 1 deletions

View File

@ -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

View File

@ -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 = {