Skip to content

Commit

Permalink
fix(just): remove brew shortcuts (#164)
Browse files Browse the repository at this point in the history
Removing install and shell for now, but leaving uninstall there since this conflicts with host stuff.
  • Loading branch information
castrojo authored Nov 28, 2023
1 parent 9c572b6 commit c94306f
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions build/ublue-os-just/00-default.just
Original file line number Diff line number Diff line change
Expand Up @@ -56,33 +56,6 @@ remove-distrobox-git:
echo 'Uninstalling latest git snapshot of Distrobox...'
curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/uninstall | sh -s -- --prefix ~/.local

# Install Homebrew for Linux
brew-install:
echo "Installing homebrew ..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Add Homebrew to shell rc files
brew-shell:
#!/usr/bin/env bash
set -euxo pipefail
echo "Adding homebrew to shell configuration"
touch $HOME/.zprofile
touch $HOME/.bash_profile
if grep -q "linuxbrew" $HOME/.zprofile
then
echo "Brew configuration already present in .zprofile"
else
echo "Adding Brew configuration to .zprofile"
echo 'eval "$(/var/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> $HOME/.zprofile
fi
if grep -q "linuxbrew" $HOME/.bash_profile
then
echo "Brew configuration already present in .bash_profile"
else
echo "Adding Brew configuration to .bash_profile"
echo 'eval "$(/var/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> $HOME/.bash_profile
fi

# Removes homebrew from system
brew-remove:
echo "Removing homebrew ..."
Expand Down

0 comments on commit c94306f

Please sign in to comment.