GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mac_setup/homebrew-setup.sh at master · eatdrinksleepcode/mac_setup

This repository was archived by the owner on Apr 12, 2022. It is now read-only.

Expand file tree

/

homebrew-setup.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
10 lines (8 loc) · 601 Bytes
/

homebrew-setup.sh

Copy path

File metadata and controls

executable file
·
10 lines (8 loc) · 601 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
set -euo pipefail
targetUser=${1:-$(whoami)}
targetGroup=brew
echo "Setting up '${targetUser}' to use Homebrew..."
echo "Loooking for the 'brew' group:"
(dscl . list /Groups | grep "^${targetGroup}$" > /dev/null) || (sudo dseditgroup -o create "${targetGroup}" -r "Homebrew users" && echo "Group '${targetGroup}' created")
echo "Checking for membership in the '${targetGroup}' group:"
(id -Gn "${targetUser}" | tr ' ' '\n' | grep "^${targetGroup}$" > /dev/null) || (sudo dseditgroup -o edit -a "${targetUser}" -t user "${targetGroup}" && echo "User '${targetUser}' added to group '${targetGroup}'")
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.