brew shellenv only if installed

This commit is contained in:
Gabriel Augendre 2024-02-18 15:08:02 +01:00
parent 4fb9aec200
commit aed1729be5

View file

@ -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