updates for macos setup fixes

This commit is contained in:
2026-09-03 21:54:11 -06:00
parent 955bce98fc
commit c023ffc6b9
4 changed files with 9 additions and 12 deletions
+5 -5
View File
@@ -99,12 +99,12 @@ OS__INSTALL_MANAGED_DEPENDENCIES() {
case ${OS_NAME} in
( macos )
zsh -c 'source ~/.zprofile &>/dev/null; sed --version 2>&1 | grep GNU | grep -qv BSD' || {
STATUS "detected BSD sed priority; updating GNU utilities in homebrew"
for P in "$(brew --prefix)"/opt/*/libexec/gnubin; do export PATH="$P:$PATH"; done
local P
for P in "$(brew --prefix)"/opt/*/libexec/gnubin(N); do export PATH="${P}:${PATH}"; done
echo 'for P in "$(brew --prefix)"/opt/*/libexec/gnubin; do export PATH="$P:$PATH"; done' >> "${HOME}/.zprofile"
}
local gnubin_line='for P in "$(brew --prefix)"/opt/*/libexec/gnubin(N); do export PATH="${P}:${PATH}"; done'
grep -qF "${gnubin_line}" "${HOME}/.zprofile" 2>/dev/null \
|| echo "${gnubin_line}" >> "${HOME}/.zprofile"
;;
esac