From 7386a5836ab2f05c1137aca6f7cccaf709b6f0b0 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Tue, 17 Dec 2019 10:55:52 +0100 Subject: [PATCH] More configuration for the zsh autocomplete. --- zsh/.config/zsh/.zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index dccab64..7f048e0 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -50,6 +50,15 @@ for plugin in "${plugins[@]}"; do fi done + +## Autosuggest plugin configuration +# Consider autocomplete in completion +ZSH_AUTOSUGGEST_STRATEGY=(history completion) +# Enable async suggestions +ZSH_AUTOSUGGEST_USE_ASYNC=1 +# No completions for long commands +ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=50 + bindkey -e # zshrc aliases alias ls='ls --color=auto'