diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-01-25 00:09:39 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-01-25 00:09:39 +0100 |
commit | fc9bc0a9ca6e729411069cbb76ef06bbbfc7ea11 (patch) | |
tree | 7bdb6f3ea115e662c7cb939489dfe34b8f6ce206 /%HOME%/.profile | |
parent | ssh: add UseKeychain for macOS (diff) | |
download | linux-home-fc9bc0a9ca6e729411069cbb76ef06bbbfc7ea11.tar.gz linux-home-fc9bc0a9ca6e729411069cbb76ef06bbbfc7ea11.zip |
.profile: setup brew
Diffstat (limited to '')
-rw-r--r-- | %HOME%/.profile | 14 |
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 |