Skip to content

Instantly share code, notes, and snippets.

@jcotton42
Last active April 29, 2021 17:11
Show Gist options
  • Save jcotton42/dfd98db55a60ed40014445b0514e0eec to your computer and use it in GitHub Desktop.
Save jcotton42/dfd98db55a60ed40014445b0514e0eec to your computer and use it in GitHub Desktop.
MacBook setup
#!/bin/bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
brew update
#Install Zsh & Oh My Zsh
# echo "Installing Oh My ZSH..."
# sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
bottles=(
git
neovim
ripgrep
fd
youtube-dl
pyenv
bat
gh
)
casks=(
cakebrew
dash
iterm2
bettertouchtool
microsoft-edge
visual-studio-code-insiders
dotnet-sdk
karabiner-elements
calibre
jetbrains-toolbox
discord
obs
makemkv
steam
)
brew install "${bottles[@]}"
brew install --cask "${casks[@]}"
echo "Trying to install haskell-stack, this may fail"
brew install haskell-stack
echo "set completion-ignore-case on" >> ~/.inputrc
# Setting Dock to auto-hide and removing the auto-hiding delay
# defaults write com.apple.dock autohide -bool true
# defaults write com.apple.dock autohide-delay -float 0
# killall dock
# Set default screen capture to clipboard
defaults write com.apple.screencapture target clipboard
echo "Install Firefox Dev Editoin from https://www.mozilla.org/en-US/firefox/developer/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment