Skip to content

Instantly share code, notes, and snippets.

@nwaringa
Last active March 23, 2023 16:04
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 nwaringa/7bb1924ea701bb6acd5f02c8d5f19f16 to your computer and use it in GitHub Desktop.
Save nwaringa/7bb1924ea701bb6acd5f02c8d5f19f16 to your computer and use it in GitHub Desktop.
#!/bin/sh
# To run:
# 1) `chmod +x ./brew-install-script.sh`
# 2) `./brew-install-script.sh`
echo "Installing Xcode"
xcode-select --install
echo "Installing Brew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # https://brew.sh/
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
echo "OhMyZSH!"
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" # https://ohmyz.sh/
echo "Installing Nerd Fonts (Caskaydia) for Starship Theme Presentation"
brew tap homebrew/cask-fonts
brew install --cask font-caskaydia-cove-nerd-font
echo "Installing Starship"
brew install starship # https://starship.rs/
echo "Installing terminal package"
brew install --cask iterm2 # https://iterm2.com/
# brew install --cask hyper # https://hyper.is/
echo "Installing Languages"
brew install python
# brew install go
echo "Installing Ops Tools"
brew install terraform
brew install kubectl
brew install helm
brew install awscli
brew install --cask aws-vault # MANUAL SETUP - https://github.com/99designs/aws-vault
echo "Improving developer quality of life tools. (VSCodium)"
brew install --cask vscodium # VSCode sans Microsoft tracking - https://vscodium.com/
# brew install --cask github
echo "Improving desktop quality of life"
brew install --cask rectangle # https://rectangleapp.com/
brew install --cask microsoft-office
# brew tap jakehilborn/jakehilborn && brew install displayplacer # https://github.com/jakehilborn/displayplacer
echo "Installing productivity apps"
brew install --cask slack
brew install --cask zoom
brew install --cask keka
brew install --cask asana # https://www.asana.com
brew tap ankitpokhrel/jira-cli # https://github.com/ankitpokhrel/jira-cli
brew install jira-cli
brew install drawio
echo "Installing browsers"
brew install --cask brave-browser
# brew install --cask firefox
# brew install --cask chrome
echo "Installing security tooling"
brew install --cask bitwarden
brew install --cask oversight
# brew install --cask blockblock
# brew install --cask lulu
# Desktop Settings
echo "Apple quality of life improvements"
defaults write NSGlobalDomain AppleShowScrollBars -string "Always" # Force scrollbars always on
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false # Remove "Natural" scrolling (Mouse)
defaults write NSGlobalDomain AppleShowAllExtensions -bool true # show all filename extensions (Finder)
defaults write com.apple.finder AppleShowAllFiles TRUE # show hidden files Finder)
defaults write com.apple.finder ShowStatusBar -bool true # show status bar (Finder)
defaults write com.apple.dock no-bouncing -bool True # Disable bouncing icons (Dock)
# Setup Git
echo "Enter Your Full Name (gitconfig): "
read git_display
git config --global user.name $git_display
# Setup Git
echo "Enter Your Email (gitconfig/ssh key): "
read git_email
git config --global user.name $git_email
clear
# Setup ssh key
ssh-keygen -t ed25519 -C $git_email
echo "Add this to your Github SSH keys (Settings > SSH and GPG Keys > New SSH Key)"
cat ~/.ssh/id_ed25519.pub
# Add to your SSH config for keychain
touch ~/.ssh/config
cat <<EOT >> ~/.ssh/config
Host github.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
EOT
# Add to keychain
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
# Starship Config - MANUAL CONFIG
git clone git@gist.github.com:962709b9882147fb44eaa685c19a1039.git
cd 962709b9882147fb44eaa685c19a1039
mv starship_example.toml ~/.config/starship.toml
cd ..
rm -fr 962709b9882147fb44eaa685c19a1039
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment