From 2174f5cd8fe1910e3728a1c2d81cf40abe12f117 Mon Sep 17 00:00:00 2001 From: reeink Date: Sun, 3 Mar 2024 00:03:25 +0800 Subject: [PATCH] use homebrew to manage zsh scripts --- dot_zshrc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/dot_zshrc b/dot_zshrc index b89edeb..a536337 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -63,11 +63,12 @@ key[Control-Right]="${terminfo[kRIT5]}" [[ -n "${key[Control-Left]}" ]] && bindkey -- "${key[Control-Left]}" backward-word [[ -n "${key[Control-Right]}" ]] && bindkey -- "${key[Control-Right]}" forward-word -# zsh-autosuggestions -source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh -# zsh-syntax-highlighting.zsh -source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +# homebrew config +eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + +source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh +source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # >>> mamba initialize >>> # !! Contents within this block are managed by 'mamba init' !! @@ -112,9 +113,6 @@ eval "$(atuin init zsh)" # zoxide config eval "$(zoxide init zsh)" -# homebrew config -eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" - # editors export EDITOR="nano" export VISUAL="code"