This repository contains everything to bootstrap my Macbook Pro (16 inch, 2019). This setup is explained in-depth in dotfiles - Document and automate your Macbook setup.
In addition to the files stored in this repository, the following instructions are needed to fully setup a Macbook Pro.
Install it manually from the website, start it and add it to the deck.
Initial settings:
- Create a new profile in
Preferences > Profile
namedwhite
Colors > Color presets > Tango Light
Session > Status bar enabled
andConfigure Status Bar
. Addgit state
,CPU utilization
,Memory utilization
. ClickAuto-Rainbow
.
- Mark
white
profile and selectOther Actions > Set as default
.
Install it on the command line first, it will ask for permission.
xcode-select --install
Note: I keep this disabled for improved security, though some sessions may require heavy sudo usage.
sudo vim /private/etc/sudoers.d/mfriedrich
#mfriedrich ALL=(ALL) NOPASSWD: ALL
Copy the following files in your home directory:
- SSH Keys
- GPG Keys
- GitHub/GitLab Tokens in
.env
- Custom settings for OhMyZSH
cd backup/
cp -r .ssh .gnupg .env .oh-my-zsh $HOME/
Note:
The
dotenv
plugin is enabled in OhMyZSH which automatically reads the.env
tokens from the user's home directory.
git clone https://gitlab.com/dnsmichi/dotfiles.git
cd dotfiles
Sync the files.
./bootstrap.sh
Apply macOS settings.
./.macos
Install Homebrew and OhMyZSH.
./brew_once.sh
Install tools and applications with Homebrew bundle.
brew bundle
This makes use of the Brewfile definitions.
These tools are managed without Homebrew on purpose, e.g. for manual updates.
- Workflows: Alfred including my Powerpack license
I only use Docker locally, required VMs run in Hetzner Cloud (private), GCP or AWS. Docker for Mac provides the docker-compose
binary required to run demo environments.
VirtualBox needs work with Kernel modules. I highly recommend to get a Parallels license instead.
These are manual settings as they require user awareness.
Enable Encryption (required for GitLab team members and recommended for everyone). See here for detailed instructions.
CLI:
sudo fdesetup status
sudo fdesetup enable
Shortcuts
: Disable Spotlight in preparation for enabling Alfred next.
Start Alfred from the Applications folder, and change the hotkey to Cmd+Space
.
Ensure that Spotlight is disabled in the system preferences.
Preferences > Sidebar
and add
- User home
- System root
- Google Chrome
- Docker (account required)
- JetBrains Toolbox (license required)
- NTFS for Mac (license required, I own a private license)
- Paw (license required, I own a private license)
- Spotify (account required)
- Telegram (account required)
Following the GitLab handbook:
- Firefox (in order to reproduce UX bugs)
- VLC
- Wireshark
More insights can be found in these lists:
On major version upgrades, binaries might be incompatible or need a local rebuild. You can enforce a reinstall by running the two commands below, the second command only reinstalls all application casks.
brew reinstall $(brew list)
brew reinstall $(brew list --cask)
When Xcode and compilers break, re-install the command line tools.
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install