Skip to content
fmasuhrPublic

About

.files for configuration

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

536 Commits

Folders and files

Repository files navigation

dotfiles

These are my config files to set a working environment

Getting Started

Prequisites

  • Mac running OS X El Capitan (10.11) or higher
  • Command Line Tools for Xcode: xcode-select --install, download or use Xcode

Installation

Clone the GitHub repository somewhere (i preferer ~/.dotfiles) on to your machine

git clone git://github.com/fmasuhr/dotfiles ~/.dotfiles

Configure 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.fmasuhr

For the inital setup you need to execute the dotfiles executable once inside the cloned repository to setup the complete environment

cd ~/.dotfiles
./bin/dotfiles

Features

After 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)

dotfiles

If necessary you can also install Homebrew packages only

dotfiles bundle

Or trigger an update of dotfiles via stow

dotfiles stow

Projects

The 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/projects

By 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.

Customization

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

Credits

About

.files for configuration

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages