From 15854b03c26c1834110e28227a3bcb8f5184d42d Mon Sep 17 00:00:00 2001 From: Nick Chambers Date: Mon, 13 May 2024 02:18:11 -0500 Subject: [PATCH] Properly setup a homebrew environment --- .bashrc | 1 + dotlib/darwin/homebrew.sh | 12 ++++++++---- homebrew/brew.env | 7 +++++++ 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 homebrew/brew.env diff --git a/.bashrc b/.bashrc index 622511e..50fe2b7 100644 --- a/.bashrc +++ b/.bashrc @@ -24,6 +24,7 @@ __dotlib_set_ENV() { [PAGER]=less [LESSHISTFILE]=- [HISTCONTROL]=ignoreboth + [XDG_CONFIG_HOME]=~/.config ) for var in "${!env[@]}"; do diff --git a/dotlib/darwin/homebrew.sh b/dotlib/darwin/homebrew.sh index 32ec697..8af11a8 100644 --- a/dotlib/darwin/homebrew.sh +++ b/dotlib/darwin/homebrew.sh @@ -1,4 +1,8 @@ -export HOMEBREW_NO_AUTO_UPDATE=grrr -export HOMEBREW_NO_ANALYTICS=lol -export HOMEBREW_NO_ENV_HINTS=thunderfury -export HOMEBREW_NO_INSECURE_REDIRECT=pirates +if [[ -v MANPATH ]]; then + MANPATH=/opt/homebrew/share/man:$MANPATH +else + MANPATH=/opt/homebrew/share/man +fi + +export MANPATH +add-path /opt/homebrew/{s,}bin diff --git a/homebrew/brew.env b/homebrew/brew.env new file mode 100644 index 0000000..7caf219 --- /dev/null +++ b/homebrew/brew.env @@ -0,0 +1,7 @@ +NO_AUTO_UPDATE=grrr +NO_ANALYTICS=lol +NO_ENV_HINTS=thunderfury +NO_INSECURE_REDIRECT=pirates +PREFIX=/opt/homebrew +CELLAR=/opt/homebrew/Cellar +REPOSITORY=/opt/homebrew