This .dotfiles project helps you back up, maintain and restore the basic setups and applications on your 🖥 Mac.
Right now can keep:
- Some Mac osx configuration
- Brew installed apps (Binaries and cask)
- Zsh config and utilities
- Git config
git clone https://github.com/rogergros/.dotfiles.git ~
./setup.sh
# In a mac
./setup_mac.sh
# Install Zim framework for ZSH
curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh
# Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
Create symlinks for zsh
ln -s ~/.dotfiles/shell/zsh/.zimrc ~/.zimrc
ln -s ~/.dotfiles/shell/zsh/.zlogin ~/.zlogin
ln -s ~/.dotfiles/shell/zsh/.zshenv ~/.zshenv
ln -s ~/.dotfiles/shell/zsh/.zshrc ~/.zshrc
Create symlinks for git
ln -s ~/.dotfiles/git/.gitattributes ~/.gitattributes
ln -s ~/.dotfiles/git/.gitconfig ~/.gitconfig
ln -s ~/.dotfiles/git/.gitignore_global ~/.gitignore_global
Install brew apps
brew bundle --file="~/.dotfiles/mac/Brewfile"
# Ensure that Jump script has file for database
touch ~/.z
Generate brew backup
# Generated as tmp to diff and take only what you want
brew bundle dump --file="~/.dotfiles/mac/Brewfile.tmp" --force
Some times you want to add customizations that you don't want to version. Let's say that you use that at work and you want to keep some environment variables. This dotfiles look for specific custom files:
~/.zshenv_custom
→ For custom environment variables
If you want to fork this repository remember to change:
git/.gitconfig
→ The git config name and emailmac/mac-setup.sh
→ Change the desired mac setup valuesapps/Brewfile
→ The mac installed apps
- Codelytv for the idea, course and dotfiles and dotly repositories
- Mathias Bynens (@mathias) for his dotfiles repository
- Gracjan (@gracjankn) for his dotfiles repository