Skip to content

Instantly share code, notes, and snippets.

@justingoeres
Last active August 22, 2023 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justingoeres/8cf4d8541cb6b5734fcbb4e88148a10d to your computer and use it in GitHub Desktop.
Save justingoeres/8cf4d8541cb6b5734fcbb4e88148a10d to your computer and use it in GitHub Desktop.
2021 MacBook Pro M1 System Setup

2021 MacBook Pro M1 System Setup

App Installations

Install brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Essentials

brew install --cask \
1password \
launchbar \
google-chrome \
firefox \
iterm2

Cask apps that need to go under ~/Applications

Just Minecraft & related stuff, really...

brew install --cask --appdir=~/Applications \
minecraft\ 
lunar-client

More casks

References:

We're going big...

brew install --cask \
audacity \ 
audio-hijack \ 
balenaetcher \ 
beyond-compare \
brave-browser \ 
burn \ 
caffeine \ 
cyberduck \ 
discord \ 
disk-inventory-x \ 
docker \ 
dropbox \ 
farrago \ 
fission \ 
gimp \ 
gitkraken \ 
inkscape \ 
intellij-idea \ 
istat-menus \
keka \
loopback \ 
macdown \ 
microsoft-teams \
musescore \ 
obs \ 
openoffice \
parallels \
pokerstars \
postman \ 
rectangle \
skype \ 
slack \ 
snagit \
tor-browser \ 
tuxguitar \ 
visual-studio-code \ 
vlc \ 
xbar \ 
xquartz

Non-cask stuff

References:

brew install \ 
blueutil \ 
ffmpeg \ 
gh \ 
gradle \ 
imagemagick \ 
jenv \ 
maven \ 
mitmproxy \ 
p7zip \ 
rename \ 
rsync \ 
tmux \ 
tree \ 
watch \ 
wget

SDKs

SDKMAN! & jEnv

We manage SDKs using a combination of SDKMAN! (to install them) and jEnv (to switch between them).

References:

Install SDKMAN!

Follow the installation instructions here.

Install SDKs

I just have one JDK installed for now:

sdk list java
sdk install java 11.0.13-zulu

Add SDKs to jEnv

cd ~/.sdkman/candidates/java
jenv add 11.0.13-zulu

Then set the Zulu Java11 to be the global one:

jenv global 11

Install Rosetta 2

This should actually happen automatically the first time you run an Intel app, but there are situations where it might not.

To install Rosetta manually, do

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

Docker Containers

Portainer

Handy web interface for managing docker containers & stacks. See portainer.io

docker run -d -p 8000:8000 -p 9000:9000 
--name=portainer \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data portainer/portainer-ce

Then access portainer at http://localhost:9000

Games

brew install --cask \ 
epic-games \
nvidia-geforce-now \ 
steam \

Shell setup (zsh)

References:

I've decided to switch over to using antigen to manage my oh-my-zsh plugins. Here's what I have so far:

brew install antigen

Add the following lines to your ~/.zshrc:

# Load antigen for zsh plugin management
source /opt/homebrew/share/antigen/antigen.zsh

# Use antigen to load stuff
## Use oh-my-zsh
antigen use oh-my-zsh

## Add plugins
antigen bundle zsh-autosuggestions # I think this may need to be loaded first?
antigen bundle ant
antigen bundle docker
antigen bundle dotenv
antigen bundle emoji
antigen bundle emotty
antigen bundle jsontools
antigen bundle macos
antigen bundle sudo
#antigen bundle brew
#antigen bundle zsh-brew-services

## Set theme
antigen theme robbyrussell

# Apply it!
antigen apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment