{bash,zsh}rc: workaround insecure homebrew

This commit is contained in:
Aminda Suomalainen 2024-10-24 10:55:33 +03:00
parent 40fa36f1c1
commit 053f0e6005
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View File

@ -323,6 +323,8 @@ fi
# https://github.com/Homebrew/brew # https://github.com/Homebrew/brew
if [ -d /home/linuxbrew/.linuxbrew/bin ]; then if [ -d /home/linuxbrew/.linuxbrew/bin ]; then
# https://www.junian.net/dev/macos-fix-zsh-compinit-insecure-directories/
(compaudit | xargs chmod g-w > /dev/null 2>&1 &)
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
fi fi

View File

@ -285,6 +285,8 @@ fi
# https://github.com/Homebrew/brew # https://github.com/Homebrew/brew
if [ -d /home/linuxbrew/.linuxbrew/bin ]; then if [ -d /home/linuxbrew/.linuxbrew/bin ]; then
# https://www.junian.net/dev/macos-fix-zsh-compinit-insecure-directories/
(compaudit | xargs chmod g-w > /dev/null 2>&1 &)
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
fi fi