This is the gathering of all installation, setup, configuration, and best practices that I could find for serious developers and engineers on an Apple macOS / mac OS (OS X / OSX) machine. This should largely be considered as a great starting point when you receive a new image or machine you are looking to provision and customize. It incorporates the use of dotfiles and is, in such a way, part and parcel with the configuration of the shell environments, IDEs, and productivity tools.
CURRENT AS OF: Big Sur WORKS ON: Intel and M1 architectures
This is what Oh My Zsh, colorls, iTerm2, Terminal.app, Atom, and MacDown look like in this setup. Underneath are, of course, a lot of settings, tweaks, and other applications which cannot be shown.
Read setup.sh
and ALL .sh
scripts in the scripts/
directory! There are a LOT of settings in macos.sh
that will tailor the way the OS is setup from things about the keyboard layout, mouse, and Trash to window behavior, settings for 3rd party applications, etc. Then you have all of the other files which may do a flavor of behavior you do not like or one tool which you prefer over another. You will very likely want to modify most of these scripts for your preference and therefore to capture this you should definitely fork this repository and retain a copy for yourself.
Nothing prevents you from adopting this configuration and tooling over your current one. However I caution you with this idea and instead suggest creating a new user, logging in as that user, and performing this setup. This way you will start with this project as a fresh baseline and can then migrate over piecemeal from your current user setup to this one.
Homebrew is used throughout so it is a mandatory requirement and installed when these scripts are run.
You should fork this project, make your modifications to it, and check them back in to your repository so you have a running reflection of your preferences and applications with their configuration through time. In addition to this I highly encourgage you to submit Pull Requests back to this project so that others may benefit from your tweaks or additions! After you do this you can follow the next step in Option 2 except for your own forked repository.
This is a little safer approach than installing remotely and gives you a little bit more control and allows you to read through and modify what will execute:
# Run with:
# (optional) NOTE: if you have a fork of this repository set this value to your GitHub username:
#export GITHUB_USERNAME="your_github_username"
# Clone:
export GITHUB_USERNAME=${GITHUB_USERNAME:="johnwyles"}
git clone git@github.com:$GITHUB_USERNAME/bootstrap-macos.git ~/.bootstrap-macos
# Execute:
pushd ~/.bootstrap-macos
./setup.sh
popd
This is the simplest way to get started if you like the default settings found in this project. You can simply get up and running by issuing the following command in your terminal:
# Run with:
# (optional) NOTE: if you have a fork of this repository set this value to your GitHub username:
#export GITHUB_USERNAME="your_github_username"
# Execute:
export GITHUB_USERNAME=${GITHUB_USERNAME:="johnwyles"}
bash -c "$(curl -fsSL https://raw.githubusercontent.com/$GITHUB_USERNAME/bootstrap-macos/master/remote_install.sh)"
I highly encourage you to please submit pull requests to this repository and contribute back from your fork whatever you found useful so that it grows.
This project was created largely because I became frustrated with a lot of the dotfile projects out there as a starting point because they were:
- Out of date
- Not generic enough (not enough tool and approach agnosticism)
- Buggy
- Unsafe or insecure
README.md
: This fileremote_install.sh
: The script that is invoked when you perform a remote installation of this project. You will not need to execute this script if you are forking this repository and running from your fork locally or if you are performing a manual installation from checking out this repository.setup.sh
: This file is basically a wrapper around all of the underlying scripts in thescripts/
directory.dotfiles/
: These are all the dotfiles which will overwrite the files in your$HOME
for$USER
after prompting you to make a backup. The backup of your current copy of your dotfiles before executing will be located in:$HOME/.dotfiles-backup
.files/
: Stores various color and theme configurations for IDEs and Terminals.scripts/
: This directory has most everything you need to take a look over and which will perform all of the installation of applications, tools, settings, and configurations for your machine.-
cloud/
: The sets up both AWS and GCP cloud tools and settings.aws.sh
: Setup Amazon Web Services (AWS) and install associated tools, libraries, SDKs.gcp.sh
: Setup Google Cloud Platform (GCP) and install associated tools, libraries, SDKs.openfaas.sh
: Install the OpenFaas CLI
-
productivity/
: Where ancillary scripts for theproductivity.sh
script live. *google_chrome_extensions.sh
: Installs various Google Chrome Extensionsprogramming/
: The set of scripts in this directory will install a number of programming languages and a minimal set of tools associated with them that are useful.erlang.sh
: Installs Erlang, Elixir, and Phoenix.go.sh
: Installs Go,godoc
,golint
, and the AWS SDK.java.sh
: Installs Java.javascript.sh
: Installs NVM, latest Node, NPM, and the AWS SDK.php.sh
: Installs PHP.python.sh
: Installs Python 2, Python 3, andvirtualenv
.ruby.sh
: Installs Ruby,rbenv
,bundler
, and the AWS SDK.rust.sh
: Installs Rust.swift.sh
: Installs Xcode andvapor
.
-
shells/
:bash.sh
: This sets up BashIt with thepowerline
theme and a bunch of plugins enabled:alias-completion
,aws
,base
,battery
,docker-compose
,docker
,git-subrepo
,git
,go
,history
,java
,javascript
,node
,nodenv
,nvm
,osx-timemachine
,osx
,powerline
,pyenv
,python
,rails
,rbenv
,ruby
,ssh
,sshagent
,tmux
,tmuxinator
,virtualenv
zsh.sh
: This sets up Oh My Zsh with thepowerlevel9k
theme and a bunch of plugins enabled:aws
,bundler
,cargo
,colorize
,command-not-found
,common-aliases
,compleat
,docker
,docker-compose
,gem
,git
,git-extras
,git-flow
,github
,gitignore
,golang
,history
,history-substring-search
,kubectl
,last-working-dir
,node
,npm
,nvm
,osx
,pip
,pyenv
,pylint
,python
,rails
,rake
,rbenv
,react-native
,ruby
,rvm
,ssh-agent
,sudo
,sublime
,terminalapp
,terraform
,themes
,tmux
,tmuxinator
,virtualenv
,xcode
,zsh-navigation-tools
fish.sh
: This sets up Oh My Fish with the following plugins:igalic/anicode
,fisherman/await
,edc/bass
,oh-my-fish/theme-bobthefish
,laughedelic/brew-completions
,franciscolourenco/done
,Shadowigor/plugin-errno-grep
,gyakovlev/fish-fzy
,oh-my-fish/plugin-grc
,oh-my-fish/plugin-license
,oh-my-fish/plugin-node-binpath
,oh-my-fish/plugin-pj
,fisherman/shark
,Markcial/upto
,jethrokuan/z
-
3dprinting.sh
: Installs Ultimaker Cura for 3D printing. -
brew_cleanup.sh
: Cleanup tasks for Homebrew installations. This script is run at the end of all others. -
brew_install.sh
: Script which looks for the Homebrew installation and installs it if it is not found. -
cli_core.sh
: This will install some basic CLI related tools and utilities and their configuration (e.g.git
,grep
,wget
, etc.). -
development.sh
: This script will install the set of software development tools and IDE's as well as their themes, color schemes, plugins, settings, and configurations. -
dotfiles.sh
: Backsup all dotfiles that will be replaced using these set of scripts. -
fonts.sh
: Self-explanitory. This will install a set of fonts used in the various terminal options and IDEs. -
hacker_tools.sh
: Installs some of the CTF tools (see https://github.com/ctfs/write-ups). -
macos.sh
: This script will set all of the operating system level settings such as the trackpad, keyboard, windows, hot corners, as well as third part application settings. -
productivity.sh
: This will install Applications system-wide for productivity (things like: Slack, Discord, Alfred, etc.) -
raspberrypi.sh
: This script will just install Balena Etcher for writing images to SD cards for us in a Raspberry Pi. -
xcode_cli_tools.sh
: This sets out a number of checks and verifications of both Xcode and Command Line Tools for Xcode as is also done somewhat at the beginning ofsetup.sh
.
-
- Cloud
Google SDK and CLI
AWS SDK and CLI
OpenFaaS CLI
- Developer Tools
Android Development Setup
App Cleaner
Arduino
Cyberduck
Docker
Fork
Heroku
Kite
kubectl
MySQL Workbench
Terraform
Vagrant
Vim (Ultimate Awesome version)
VirtualBox
VMware Fusion
- Devices
3D Printing
Arduino
Raspberri Pi
- Fonts
Powerline
Nerd
- IDEs
Atom
(with the following plugins)activate-power-mode
autocomplete-java
atom-typescript
busy-signal
go-debug
go-plus
intentions
language-swift
language-rust
linter
linter-rust
linter-ui-default
react
Eclipse
IntelliJ IDEA
Sublime Text 3
(with following packages and themes)Material
themePackage Control
pluginSolarized
theme
VSCode
(with the following plugins)davidanson.vscode-markdownlint
dracula-theme.theme-dracula
eamodio.gitlens
eg2.vscode-npm-script
formulahendry.code-runner
kiteco.kite
hookyqr.beautify
knisterpeter.vscode-github
kumar-harsh.graphql-for-vscode
hashicorp.terraform
mjmcloug.vscode-elixir
ms-kubernetes-tools.vscode-kubernetes-tools
ms-vscode.go
ms-python.python
ms-vscode.terraform
peterjausovec.vscode-docker
pgourlain.erlang
rebornix.ruby
redhat.vscode-yaml
rust-lang.rust
shan.code-settings-sync
Xcode
- Productivity
1Password
Alfred
Appcleaner
Backup and Sync from Google
Bartender
BOINC
Brave
Discord
Dropbox
Evernote
Firefox
Forklift
Google Drive
Google Chrome
Google Chrome Extensions
Inkscape
iStat Menus
Java
Keka
Krisp
Macdown
MacTeX
Opera
Plex Media Server
Quicklook Plugins
Resilio Sync
Skype
Slack
Spectacle
Spotify
Telegram
Transmission
Viber
VLC
WhatsApp
- Programming Languages
erlang
go
(includes:godoc
,golint
,protobuf
,micro
,gRPC
)java
javascript
(includes:nvm
,npm
,node
,react
)php
python
(includes:poetry
,pyenv
,virtualenv
)ruby
(includes:rbenv
,bundler
)rust
(includes:cargo
)swift
(includes:Xcode
,vapor
)
- Shells
Terminal
- Customized with the
Dracula
color set - Utilizes the
Hack Regular Nerd Font Complete
font set
- Customized with the
iTerm2
- Customized with
Dracula
,termk
, andSolarized Dark
color sets - Utilizes the
Hack Regular Nerd Font Complete
font set
- Customized with
Hyper
- Uses the fun
hyperpower
plugin - Utilizes the
hyper-electron-highlighter
theme
- Uses the fun
There are some things I would like to do to this project to take it further and mainly they are around the maintenance of this project being broken down into some main areas: keeping updates backwards compatible, toggliblity of the various suites of software, README.md
takes a long time to update. Here are some ways I have thought of to capture these in addition to others:
rbenv
andpyenv
break every other week or so it seems. Can we stabalize around them? ASDF?!?- Update screenshot(s)
- Come up with a way to present the many numerous options in a GUI
- Probably involves spitting out a master configuration YAML or JSON
- Using a configuration file to toggle on and off packages and customizations
README.md
sections become auto-generated or maintained- Explain
rbenv
,pyenv
,poetry
usage ASDF instead?!? - Enumerate what each Chome extension is (currently cryptic)
- This may be removed since using Google Sync within Google Chrome signin brings all old extensions back
- Like with Chrome signing into VS Code installs old extensions and settings so possibly remove this as well
- Research using Ansible