add autosuggestions to zsh

This commit is contained in:
2025-10-20 03:30:41 +02:00
parent 4a65f5e537
commit b4cd147221

View File

@@ -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]*[ ]*//')