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