From b4cd1472210236641d4a1fad08b3a1c71247123b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20SALVI?= Date: Mon, 20 Oct 2025 03:30:41 +0200 Subject: [PATCH] add autosuggestions to zsh --- modules/core/tty.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/core/tty.nix b/modules/core/tty.nix index 1e0bcc0..e9a4819 100644 --- a/modules/core/tty.nix +++ b/modules/core/tty.nix @@ -34,7 +34,7 @@ enable = true; enableCompletion = true; syntaxHighlighting.enable = true; - autosuggestions.enable = false; + autosuggestions.enable = true; histSize = 200000; histFile = "$HOME/.config/zsh/.zsh_history"; setOptions = [ @@ -50,6 +50,9 @@ zstyle ':completion:*' menu select zmodload zsh/complist + # enable dotfiles in tab directory completion + setopt globdots + fzf-history() { local selected selected=$(fc -l 1 | fzf --tac --no-sort | sed 's/^[ ]*[0-9]*[ ]*//')