From fc9bc0a9ca6e729411069cbb76ef06bbbfc7ea11 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 25 Jan 2023 00:09:39 +0100 Subject: .profile: setup brew --- %HOME%/.profile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '%HOME%/.profile') diff --git a/%HOME%/.profile b/%HOME%/.profile index 72d5110..1f64f7a 100644 --- a/%HOME%/.profile +++ b/%HOME%/.profile @@ -28,6 +28,20 @@ path_export() { path_export "$HOME/.local/bin" +# Homebrew-specific stuff + +brew_setup() { + [ -x /opt/homebrew/bin/brew ] && \ + eval "$( /opt/homebrew/bin/brew shellenv )" && \ + prefix="$( brew --prefix )" && \ + path_export \ + "$prefix/opt/coreutils/libexec/gnubin" \ + "$prefix/opt/findutils/libexec/gnubin" \ + "$prefix/opt/grep/libexec/gnubin" +} + +brew_setup + # Ruby-specific stuff # This is a half-assed way to automatically add your user's gem binary -- cgit v1.2.3