Coder Social home page Coder Social logo

zijlstra-it / macos-setup Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 98 KB

My setup files and settings for configuring a clean Mac

License: Creative Commons Zero v1.0 Universal

Shell 94.08% Python 0.74% AppleScript 0.24% Vim Script 0.32% Makefile 0.20% Ruby 4.42%

macos-setup's Introduction

macOS-setup

The repository contains the files I use to configure a new installation of macOS to my liking. Feel free to clone/fork and alter to your needs.

Main Functionality

The Ansible code does, in order:

  • Configure settings for MacOS, see mac-ansible/scripts/macos-settings.sh
  • Setup a few standard paths I use; ~/git, ~/tmp and ~/bin.
  • Installs a set of applications using brew, see mac-ansible/files/brewfile for the full list.
  • Install dotfiles for various software configurations.
  • Sets up SSH keys if a private {{ cloudfiles_path }}/ssh_config directory is not found.
  • Sets up Python and pyenv with a default virtual environment.
  • Configures the MacOS dock
  • Clones a list of git repo's if defined.
  • Configures file extentions (currently none defined btw)

Installation

On first run you need to do make init

On subsequent runs just make main or use mac-ansible/ansible-wrapper.sh which can also take Ansible tags for the specific tasks to limit the execution.

Customization

The default settigs are in mac-ansible/default.config.yml but if you want to change one or more of the settings, then create mac-ansible/config.yml with altered variables to your liking.

Private dotfiles

The setup allows for using dotfiles stored in other places, eg your own Owncloud or iCloud. The dotfiles need to be stored at the location pointed to with {{ cloudfiles_path }}. In that location you can store dotfiles, without the dot in front, as stored in your homedir or in sub-directories of a directory called config, which is the XDG_CONFIG_DIR by default.

An example dotfiles dir could like this:

├── ansible-lint
├── gitconfig
├── gitignore
├── config
│  └── tmux
│     └── tmux.conf
└── zshrc

Manual steps

Add SSH key to the Apple keychain

/usr/bin/ssh-add --apple-use-keychain ~/.ssh/id_rsa

Inspiration

The initial setup of this project is highly based on JJGO/macOS-setup and along the way I altered it to my own needs.

macos-setup's People

Contributors

zijlstra-it avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.