use homebrew to manage zsh scripts

This commit is contained in:
reeink 2024-03-03 00:03:25 +08:00
parent 059b69f9e4
commit 2174f5cd8f
No known key found for this signature in database

View file

@ -63,11 +63,12 @@ key[Control-Right]="${terminfo[kRIT5]}"
[[ -n "${key[Control-Left]}" ]] && bindkey -- "${key[Control-Left]}" backward-word [[ -n "${key[Control-Left]}" ]] && bindkey -- "${key[Control-Left]}" backward-word
[[ -n "${key[Control-Right]}" ]] && bindkey -- "${key[Control-Right]}" forward-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 >>> # >>> mamba initialize >>>
# !! Contents within this block are managed by 'mamba init' !! # !! Contents within this block are managed by 'mamba init' !!
@ -112,9 +113,6 @@ eval "$(atuin init zsh)"
# zoxide config # zoxide config
eval "$(zoxide init zsh)" eval "$(zoxide init zsh)"
# homebrew config
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# editors # editors
export EDITOR="nano" export EDITOR="nano"
export VISUAL="code" export VISUAL="code"