mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-06 01:19:23 +01:00
{bash,zsh}rc: workaround insecure homebrew
This commit is contained in:
parent
40fa36f1c1
commit
053f0e6005
@ -323,6 +323,8 @@ fi
|
||||
|
||||
# https://github.com/Homebrew/brew
|
||||
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)
|
||||
fi
|
||||
|
||||
|
2
rc/zshrc
2
rc/zshrc
@ -285,6 +285,8 @@ fi
|
||||
|
||||
# https://github.com/Homebrew/brew
|
||||
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)
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user