Skip to content

Commit

Permalink
feat: add brew-config recipe to modify user rc (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
bketelsen committed Aug 8, 2023
1 parent 76cbad3 commit 9a3b4b4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions usr/share/ublue-os/just/custom.just
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,32 @@ 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)"

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


cockpit:
echo 'Enabling Cockpit'
echo 'PasswordAuthentication yes' | sudo tee /etc/ssh/sshd_config.d/02-enable-passwords.conf
Expand Down

0 comments on commit 9a3b4b4

Please sign in to comment.