Skip to content

Commit

Permalink
chore(just): brew moved to config repo (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslept authored Nov 24, 2023
1 parent 2cbe183 commit 8c8799c
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions just/custom.just
Original file line number Diff line number Diff line change
Expand Up @@ -23,38 +23,6 @@ aqua:
printf '\n export PATH="${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin:$PATH"\n'
printf '\n=> see https://aquaproj.github.io/docs/tutorial for more info\n'

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

# Remove Homebrew
brew-remove:
echo "Removing homebrew ..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.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

# Enable Cockpit for web-based system management | https://cockpit-project.org/
cockpit:
echo 'Enabling Cockpit'
Expand Down

0 comments on commit 8c8799c

Please sign in to comment.