From 07e2dca4274a81aacd7640df450b951c0c35c8ad Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 20 Jun 2025 09:16:43 +0300 Subject: [PATCH] linuxbrew compatibility with fedora atomic --- etc/profile.d/99-brew-whateverenv.sh | 4 ++++ rc/bashrc | 4 ++++ rc/zshrc | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/etc/profile.d/99-brew-whateverenv.sh b/etc/profile.d/99-brew-whateverenv.sh index 387948fb..5232ce9e 100644 --- a/etc/profile.d/99-brew-whateverenv.sh +++ b/etc/profile.d/99-brew-whateverenv.sh @@ -65,4 +65,8 @@ fi # https://github.com/Homebrew/brew if [ -d /home/linuxbrew/.linuxbrew/bin ]; then eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) + # Fedora Atomic compatibility to bypass symlink resolution + export HOMEBREW_CELLAR=/home/linuxbrew/.linuxbrew/Cellar + export HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew + export HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew fi diff --git a/rc/bashrc b/rc/bashrc index 4ed4d881..abe2edd4 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -341,6 +341,10 @@ fi # https://github.com/Homebrew/brew if [ -d /home/linuxbrew/.linuxbrew/bin ]; then eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) + # Fedora Atomic compatibility to bypass symlink resolution + export HOMEBREW_CELLAR=/home/linuxbrew/.linuxbrew/Cellar + export HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew + export HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew fi # linuxbrew toolbox compatibility diff --git a/rc/zshrc b/rc/zshrc index 948738a3..5add99d7 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -304,6 +304,10 @@ fi # https://github.com/Homebrew/brew if [ -d /home/linuxbrew/.linuxbrew/bin ]; then eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) + # Fedora Atomic compatibility to bypass symlink resolution + export HOMEBREW_CELLAR=/home/linuxbrew/.linuxbrew/Cellar + export HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew + export HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew fi # linuxbrew toolbox compatibility