These are my config files to set a working environment
- Mac running OS X El Capitan (10.11) or higher
- Command Line Tools for Xcode:
xcode-select --install, download or use Xcode
Clone the GitHub repository somewhere (i preferer ~/.dotfiles) on to your machine
git clone git://github.com/fmasuhr/dotfiles ~/.dotfilesConfigure email as this is done per repository.
# ~/.gitconfig.local
[user]
email = your@email.com
[includeIf "hasconfig:remote.*.url:git@github.com:fmasuhr/**"]
path = ~/.gitconfig.fmasuhr
[includeIf "hasconfig:remote.*.url:https://github.com/fmasuhr/**"]
path = ~/.gitconfig.fmasuhrFor the inital setup you need to execute the dotfiles executable once inside the cloned repository to setup the complete environment
cd ~/.dotfiles
./bin/dotfilesAfter the first initialization there is a shortcut available which can be used to later on to update the complete environment (which should be done e.g. on a daily base)
dotfilesIf necessary you can also install Homebrew packages only
dotfiles bundleOr trigger an update of dotfiles via stow
dotfiles stowThe bin/projects script helps to sync my starred GitHub repositories into a local folder and keeps them up to date. It will clone repositories that do not exist locally and pull changes for anything that already exists.
bin/projectsBy default it syncs all starred repositories in ~/github. If you want to sync only a specific starred list you can configure a list name and the script will use that list instead.
# ~/.zshrc.local
export PROJECTS_PATH=~/github
export STARRED_LIST_NAME="my-projects"If STARRED_LIST_NAME is empty, the script falls back to syncing every starred repository. If it is set, only repositories that are part of that list are synced.
Make your own customizations locally by placing one of the following files into your home folder
~/.aliases.local~/.functions.local~/.gitconfig.local~/.zshrc.local~/.bin.local
- Mathias Bynens macOS Defaults
- https://github.com/joeyhoer/starter