From 439f29318c9c555a00731f6f2f749ae34a8ce039 Mon Sep 17 00:00:00 2001 From: bretello Date: Thu, 21 Dec 2023 16:11:23 +0100 Subject: [PATCH] zsh: disable completions when a comment is started, change comment highlight style --- brethil_dotfile.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brethil_dotfile.sh b/brethil_dotfile.sh index 3602788..b936579 100755 --- a/brethil_dotfile.sh +++ b/brethil_dotfile.sh @@ -34,7 +34,7 @@ elif [[ "$(command -v apt-get)" ]]; then antibody bundle robbyrussell/oh-my-zsh path:plugins/debian fi -ZSH_HIGHLIGHT_STYLES[comment]='fg=gray,bg=white,bold' +ZSH_HIGHLIGHT_STYLES[comment]='fg=white,bg=gray,bold' # Setup oh-my-zsh path export ZSH="$(antibody path robbyrussell/oh-my-zsh)" @@ -78,6 +78,7 @@ export SAVEHIST=10000000 # zsh-autosuggestions config export ZSH_AUTOSUGGEST_STRATEGY=(history completion) +export ZSH_AUTOSUGGEST_COMPLETION_IGNORE='* \#*' # prevent completion for comments # less options export LESS='-xRF-j12' # -j12: displays 12 lines before search results with / and ?