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};
ignoreShellProgramCheck = true;
packages = with pkgs; [
fzf
];
};
# Set /etc/shells so GDM will show our user when ZSH is selected

View File

@ -16,7 +16,8 @@ in
programs.zsh = {
enable = cfg.enable;
dotDir = "${xdgCfg.configHome}/zsh";
autosuggestion.enable = true;
autosuggestion.enable = false;
enableCompletion = true;
syntaxHighlighting = {
enable = true;
highlighters = [
@ -28,9 +29,13 @@ in
};
historySubstringSearch.enable = true;
history = {
append = true;
ignoreDups = false;
ignoreSpace = true;
save = 100000;
share = true;
size = 100000;
extended = true;
};
initContent = ''
@ -45,6 +50,12 @@ in
# Tab to accept current selection
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 = {