From fcf765da20310d594c5e1a50b9880a134155b7c7 Mon Sep 17 00:00:00 2001 From: yeti Date: Thu, 17 Apr 2025 22:57:08 +0100 Subject: [PATCH] fix(zsh): correct way of loading zsh autosuggestions and highlighting --- zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 4f11143..b76976a 100644 --- a/zshrc +++ b/zshrc @@ -71,7 +71,7 @@ ZSH_THEME="robbyrussell" # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. -plugins=(git fzf zsh-autosuggestions zsh-syntax-highlighting) +plugins=(git fzf) # Using highlight (http://www.andre-simon.de/doku/highlight/en/highlight.html) export FZF_CTRL_T_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null | head -200'" @@ -113,3 +113,5 @@ export FZF_TMUX=1 source $ZSH/oh-my-zsh.sh source $HOME/.config/zsh/fzf-git.sh +source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh