From 053f0e60058f76ce735351c3303f7eb6517b2591 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 24 Oct 2024 10:55:33 +0300 Subject: [PATCH] {bash,zsh}rc: workaround insecure homebrew --- rc/bashrc | 2 ++ rc/zshrc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/rc/bashrc b/rc/bashrc index c3413711..741cd9fb 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -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 diff --git a/rc/zshrc b/rc/zshrc index 96474deb..fa68737c 100755 --- a/rc/zshrc +++ b/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