From 0b9f6bbb109c6ee964a44b1ef2eb5466432fbfcc Mon Sep 17 00:00:00 2001 From: Sirisak Lueangsaksri <1087399+spywhere@users.noreply.github.com> Date: Sat, 23 Dec 2023 01:42:51 +0700 Subject: [PATCH] refactor(zsh): use brew plugin to set path instead --- configs/zsh/zshrc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/configs/zsh/zshrc b/configs/zsh/zshrc index ca6e52d..0631e13 100644 --- a/configs/zsh/zshrc +++ b/configs/zsh/zshrc @@ -94,6 +94,8 @@ fi # typeset -g suggestion="$pattern from openai" # } +zinit snippet OMZP::brew + if test -z "$VIM" && test -z "$TMUX" && test -z "$TERM_PROGRAM" && test ! -f ~/no-tmux; then zinit ice lucid wait"0" zinit snippet OMZ::plugins/tmux @@ -117,7 +119,6 @@ else zinit light zdharma-continuum/fast-syntax-highlighting zinit snippet OMZP::asdf - zinit snippet OMZP::brew zinit snippet OMZP::common-aliases zinit ice lucid as"completion" zinit snippet OMZP::docker/completions/_docker @@ -132,13 +133,6 @@ else zinit snippet OMZP::npm fi -if test -d /opt/homebrew/bin; then - export PATH="/opt/homebrew/bin:$PATH" -fi -if test -d /opt/homebrew/sbin; then - export PATH="/opt/homebrew/sbin:$PATH" -fi - if $USE_STARSHIP; then # Setup starship . <(starship init zsh)