mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-24 03:59:45 +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
|
# 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
|
||||||
|
|
||||||
|
2
rc/zshrc
2
rc/zshrc
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user