From aed1729be5534836168ac5f4ef0fb67d0be10fbe Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 18 Feb 2024 15:08:02 +0100 Subject: [PATCH] brew shellenv only if installed --- dot_config/fish/private_config.fish.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/fish/private_config.fish.tmpl b/dot_config/fish/private_config.fish.tmpl index a633a6f..baec59c 100644 --- a/dot_config/fish/private_config.fish.tmpl +++ b/dot_config/fish/private_config.fish.tmpl @@ -1,7 +1,7 @@ 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)" +command -v brew > /dev/null; and eval "$(brew shellenv)" {{- end }} {{- if eq .chezmoi.os "linux" }} fish_add_path /home/linuxbrew/.linuxbrew/bin $HOME/.local/share/JetBrains/Toolbox/scripts