From 52d545abeb09568fc0589d9c7a169aff9fd8c3ce Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 18 Feb 2024 14:35:43 +0100 Subject: [PATCH] add path for non-sudo homebrew --- dot_config/fish/private_config.fish.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dot_config/fish/private_config.fish.tmpl b/dot_config/fish/private_config.fish.tmpl index c3c9c7e..7ddbfea 100644 --- a/dot_config/fish/private_config.fish.tmpl +++ b/dot_config/fish/private_config.fish.tmpl @@ -1,4 +1,8 @@ fish_add_path /opt/homebrew/opt/curl/bin /opt/homebrew/bin /opt/homebrew/sbin $HOME/.local/bin $HOME/.cargo/bin $HOME/go/bin +{{- if not (get . "sudo") }} +fish_add_path $HOME/.local/homebrew/bin +eval "$(brew shellenv)" +{{- end }} {{- if eq .chezmoi.os "linux" }} fish_add_path /home/linuxbrew/.linuxbrew/bin $HOME/.local/share/JetBrains/Toolbox/scripts eval "$(brew shellenv)"