My dotfiles repository.
This version of my dotfiles is installing a zsh configuration.
To download dotfiles repository, execute the following command in the terminal:
git clone git@github.com:mpetersen/dotfiles.git && mv dotfiles ~/.dotfiles
If you are executing this command on a new Mac, git
might not be installed yet. However, you will be prompted to install the command line developer tools.
After installing the developer tools, execute the above command again and the dotfiles repository will be downloaded at .dotfiles
in your home directory. This is a git repository that you can use to update your dotfiles.
In the .dotfiles
repository folder you find a tool to install dotfiles: dotfiles
:
~/.dotfiles/install.sh
This script does:
- Enable FileVault
- Install Homebrew
- Install applications from Homebrew and Appstore
~/.dotfiles/setup.sh
This script does:
- Remove existing files or links
- Create new links
If you want to update the install files for Homebrew and Appstore, you need to run the following commands:
brew list --cask > ~/.dotfiles/install/brew-cask-list
brew list --formulae > ~/.dotfiles/install/brew-list
mas list > ~/.dotfiles/install/mas-list
You can install your cloud folders (e.g. Creative Cloud, OneDrive, Dropbox etc.) in ~/Clouds
. The following script will install symlinks in your home ~/Documents
, ~/Pictures
etc.:
~/.dotfiles/clouds.sh
Store confidential information in ~/.exports_private
.
Run the following command to update the dock to standard configuration:
~/.dotfiles/dock.sh
If you want to test the dotfiles tool on a clean Mac, there is no need to wipe your machine. Instead, you can install a clean system on VirtualBox. Follow this link to setup OS X on VirtualBox.
If you continue to work on the dotfiles tool and want to test, I recommend to create a snapshot after a clean system install.