aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%/.profile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-01-25 00:09:39 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-01-25 00:09:39 +0100
commitfc9bc0a9ca6e729411069cbb76ef06bbbfc7ea11 (patch)
tree7bdb6f3ea115e662c7cb939489dfe34b8f6ce206 /%HOME%/.profile
parentssh: add UseKeychain for macOS (diff)
downloadlinux-home-fc9bc0a9ca6e729411069cbb76ef06bbbfc7ea11.tar.gz
linux-home-fc9bc0a9ca6e729411069cbb76ef06bbbfc7ea11.zip
.profile: setup brew
Diffstat (limited to '')
-rw-r--r--%HOME%/.profile14
1 files changed, 14 insertions, 0 deletions
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